remove unused GetSampleRate

This commit is contained in:
Glenn Maynard
2007-01-27 09:26:27 +00:00
parent 1258683aa4
commit 0191581eab
2 changed files with 0 additions and 14 deletions
-12
View File
@@ -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 );
-2
View File
@@ -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; }