Explorar el Código

Stop sound source before unloading

pull/218/head
Ray San hace 8 años
padre
commit
fc7d4cef18
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      src/audio.c

+ 2
- 0
src/audio.c Ver fichero

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

Cargando…
Cancelar
Guardar