Parcourir la source

Stop sound source before unloading

pull/218/head
Ray San il y a 8 ans
Parent
révision
fc7d4cef18
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. +2
    -0
      src/audio.c

+ 2
- 0
src/audio.c Voir le fichier

@ -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);

Chargement…
Annuler
Enregistrer