This commit is contained in:
Glenn Maynard
2004-07-17 22:03:41 +00:00
parent a6b5da3207
commit 28d25210a2
+2
View File
@@ -756,12 +756,14 @@ float RageSound::GetPositionSeconds( bool *approximate, RageTimer *Timestamp ) c
bool RageSound::SetPositionSeconds( float fSeconds )
{
ASSERT( Sample );
return SetPositionFrames( int(fSeconds * samplerate()) );
}
/* This is always the desired sample rate of the current driver. */
int RageSound::GetSampleRate() const
{
ASSERT( Sample );
return Sample->GetSampleRate();
}