Sfoglia il codice sorgente

Stop sound source before unloading

pull/218/head
Ray San 8 anni fa
parent
commit
fc7d4cef18
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      src/audio.c

+ 2
- 0
src/audio.c Vedi File

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

Caricamento…
Annulla
Salva