ソースを参照

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

読み込み中…
キャンセル
保存