From 95f72debdc96708a972c31ccbb19a10e6adf12ef Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 13 Dec 2006 09:17:48 +0000 Subject: [PATCH] remove pSound param --- stepmania/src/RageSound.cpp | 2 +- stepmania/src/RageSoundManager.cpp | 2 +- stepmania/src/RageSoundManager.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageSound.cpp b/stepmania/src/RageSound.cpp index b58a88d5db..d4201f1b0d 100644 --- a/stepmania/src/RageSound.cpp +++ b/stepmania/src/RageSound.cpp @@ -639,7 +639,7 @@ int64_t RageSound::GetPositionSecondsInternal( bool *bApproximate ) const } /* Get our current hardware position. */ - int64_t iCurrentHardwareFrame = SOUNDMAN->GetPosition(this); + int64_t iCurrentHardwareFrame = SOUNDMAN->GetPosition(); /* It's sometimes possible for the hardware position to move backwards, usually * on underrun. We can try to prevent this in each driver, but it's an obscure diff --git a/stepmania/src/RageSoundManager.cpp b/stepmania/src/RageSoundManager.cpp index 8ee4e79f20..4de9e74b20 100644 --- a/stepmania/src/RageSoundManager.cpp +++ b/stepmania/src/RageSoundManager.cpp @@ -104,7 +104,7 @@ bool RageSoundManager::Pause( RageSoundBase *pSound, bool bPause ) return m_pDriver->PauseMixing( pSound, bPause ); } -int64_t RageSoundManager::GetPosition( const RageSoundBase *pSound ) const +int64_t RageSoundManager::GetPosition() const { if( m_pDriver == NULL ) return 0; diff --git a/stepmania/src/RageSoundManager.h b/stepmania/src/RageSoundManager.h index 59a638a933..c4ee67d887 100644 --- a/stepmania/src/RageSoundManager.h +++ b/stepmania/src/RageSoundManager.h @@ -37,7 +37,7 @@ public: void StartMixing( RageSoundBase *snd ); /* used by RageSound */ void StopMixing( RageSoundBase *snd ); /* used by RageSound */ bool Pause( RageSoundBase *snd, bool bPause ); /* used by RageSound */ - int64_t GetPosition( const RageSoundBase *snd ) const; /* used by RageSound */ + int64_t GetPosition() const; /* used by RageSound */ void RegisterSound( RageSound *p ); /* used by RageSound */ void UnregisterSound( RageSound *p ); /* used by RageSound */ int GetUniqueID(); /* used by RageSound */