浏览代码

Stop sound source before unloading

pull/218/head
Ray San 8 年前
父节点
当前提交
fc7d4cef18
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/audio.c

+ 2
- 0
src/audio.c 查看文件

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

正在加载...
取消
保存