remove RageSoundManager::PlayCopyOfSound
This commit is contained in:
@@ -144,19 +144,6 @@ int RageSoundManager::GetDriverSampleRate() const
|
|||||||
return m_pDriver->GetSampleRate();
|
return m_pDriver->GetSampleRate();
|
||||||
}
|
}
|
||||||
|
|
||||||
RageSound *RageSoundManager::PlayCopyOfSound( RageSound &snd, const RageSoundParams *pParams )
|
|
||||||
{
|
|
||||||
RageSound *pSound = new RageSound( snd );
|
|
||||||
|
|
||||||
if( pParams )
|
|
||||||
pSound->SetParams( *pParams );
|
|
||||||
|
|
||||||
pSound->StartPlaying();
|
|
||||||
pSound->DeleteSelfWhenFinishedPlaying();
|
|
||||||
|
|
||||||
return pSound;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* If the given path is loaded, return a copy; otherwise return NULL.
|
/* If the given path is loaded, return a copy; otherwise return NULL.
|
||||||
* It's the caller's responsibility to delete the result. */
|
* It's the caller's responsibility to delete the result. */
|
||||||
RageSoundReader *RageSoundManager::GetLoadedSound( const RString &sPath_ )
|
RageSoundReader *RageSoundManager::GetLoadedSound( const RString &sPath_ )
|
||||||
|
|||||||
@@ -47,8 +47,6 @@ public:
|
|||||||
|
|
||||||
void PlayOnce( RString sPath );
|
void PlayOnce( RString sPath );
|
||||||
|
|
||||||
RageSound *PlayCopyOfSound( RageSound &snd, const RageSoundParams *params = NULL );
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
map<RString, RageSoundReader_Preload *> m_mapPreloadedSounds;
|
map<RString, RageSoundReader_Preload *> m_mapPreloadedSounds;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user