remove unused GetSampleRate
This commit is contained in:
@@ -522,18 +522,6 @@ float RageSound::GetPositionSeconds( bool *bApproximate, RageTimer *pTimestamp )
|
||||
}
|
||||
|
||||
|
||||
/* This is always the desired sample rate of the current driver. */
|
||||
int RageSound::GetSampleRate() const
|
||||
{
|
||||
if( m_pSource == NULL )
|
||||
{
|
||||
LOG->Warn( "RageSound::GetSampleRate(): sound not loaded" );
|
||||
return 44100;
|
||||
}
|
||||
|
||||
return m_pSource->GetSampleRate();
|
||||
}
|
||||
|
||||
bool RageSound::SetPositionFrames( int iFrames )
|
||||
{
|
||||
LockMut( m_Mutex );
|
||||
|
||||
@@ -18,7 +18,6 @@ public:
|
||||
virtual void SoundIsFinishedPlaying() = 0;
|
||||
virtual int GetDataToPlay( float *buffer, int size, int64_t &iStreamFrame, int &got_bytes ) = 0;
|
||||
virtual void CommitPlayingPosition( int64_t iFrameno, int64_t iPosition, int iBytesRead ) = 0;
|
||||
virtual int GetSampleRate() const = 0;
|
||||
virtual RageTimer GetStartTime() const { return RageZeroTimer; }
|
||||
virtual RString GetLoadedFilePath() const = 0;
|
||||
};
|
||||
@@ -132,7 +131,6 @@ public:
|
||||
|
||||
float GetLengthSeconds();
|
||||
float GetPositionSeconds( bool *approximate=NULL, RageTimer *Timestamp=NULL ) const;
|
||||
int GetSampleRate() const;
|
||||
RString GetLoadedFilePath() const { return m_sFilePath; }
|
||||
bool IsPlaying() const { return m_bPlaying; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user