diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index 36fba986b6..936e74b0c7 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -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 ); diff --git a/stepmania/src/RageSound.h b/stepmania/src/RageSound.h index 66c340452a..4a85bec85d 100644 --- a/stepmania/src/RageSound.h +++ b/stepmania/src/RageSound.h @@ -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; }