mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-07 05:43:26 +00:00
Stop sound source before unloading
This commit is contained in:
@@ -353,6 +353,8 @@ void UnloadWave(Wave wave)
|
||||
// Unload sound
|
||||
void UnloadSound(Sound sound)
|
||||
{
|
||||
alSourceStop(sound.source);
|
||||
|
||||
alDeleteSources(1, &sound.source);
|
||||
alDeleteBuffers(1, &sound.buffer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user