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:
parent
5ff9482422
commit
6a4ec16935
@ -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)
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user