1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Add a function to flush all sounds

This commit is contained in:
Mathieu Schroeter 2017-02-28 21:49:15 +01:00
parent 5ff9482422
commit 6a4ec16935
2 changed files with 7 additions and 0 deletions

View File

@ -177,6 +177,12 @@ out:
return true;
}
void CSound::FlushAll ()
{
for (int ch = 0; ch < sizeof (m_lpSDL); ++ch)
Flush (ch);
}
// D�charge un son.
void CSound::Flush (Sint32 channel)

View File

@ -29,6 +29,7 @@ public:
void CacheAll();
bool Cache (Sint32 channel, const std::string &pFilename);
void FlushAll ();
void Flush (Sint32 channel);
bool Play (Sint32 channel, Sint32 volume = 0, Uint8 panLeft = 255,