remove SetPositionSeconds. Use m_Param.m_StartSecond.
This commit is contained in:
@@ -470,17 +470,6 @@ float RageSound::GetPositionSeconds( bool *bApproximate, RageTimer *pTimestamp )
|
||||
}
|
||||
|
||||
|
||||
bool RageSound::SetPositionSeconds( float fSeconds )
|
||||
{
|
||||
if( m_pSource == NULL )
|
||||
{
|
||||
LOG->Warn( "RageSound::SetPositionSeconds(%f): sound not loaded", fSeconds );
|
||||
return false;
|
||||
}
|
||||
|
||||
return SetPositionFrames( int(fSeconds * samplerate()) );
|
||||
}
|
||||
|
||||
/* This is always the desired sample rate of the current driver. */
|
||||
int RageSound::GetSampleRate() const
|
||||
{
|
||||
|
||||
@@ -128,7 +128,6 @@ public:
|
||||
float GetLengthSeconds();
|
||||
float GetPositionSeconds( bool *approximate=NULL, RageTimer *Timestamp=NULL ) const;
|
||||
int GetSampleRate() const;
|
||||
bool SetPositionSeconds( float fSeconds );
|
||||
RString GetLoadedFilePath() const { return m_sFilePath; }
|
||||
bool IsPlaying() const { return m_bPlaying; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user