Exemplo n.º 1
0
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
//		¥ SetPlayPosition									/*e*/
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
// Sets the play position, don't know what happens if you get it past the end
void CMADDriver::SetPlayPosition(
	SInt32		inTicks)
{
	if (mMusic)
	{
		SInt32		max=GetMusicLength();
		
		if (inTicks>max)
			inTicks=max;
			
		ThrowIfOSErr_(::MADSetMusicStatus(mDriver,0,max,inTicks));
		mLastRecordedPosition=mDriver->PL;
	}
}
Exemplo n.º 2
0
double ControlEvent::GetMusicSeconds(HSTREAM m_stream)
{
	double time=BASS_ChannelBytes2Seconds(m_stream, GetMusicLength(m_stream)); // the length in seconds
	return time;
}