diff options
| author | Ray San <raysan5@gmail.com> | 2017-01-18 17:25:25 +0100 |
|---|---|---|
| committer | Ray San <raysan5@gmail.com> | 2017-01-18 17:25:25 +0100 |
| commit | fc7d4cef1833f216a98c13bc2c44f43e67163623 (patch) | |
| tree | fd5a7da38885a2258af938aab580a023ed945117 /src | |
| parent | 46f95a730a68d50c9d369739af61e60961166721 (diff) | |
| download | raylib-fc7d4cef1833f216a98c13bc2c44f43e67163623.tar.gz raylib-fc7d4cef1833f216a98c13bc2c44f43e67163623.zip | |
Stop sound source before unloading
Diffstat (limited to 'src')
| -rw-r--r-- | src/audio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/audio.c b/src/audio.c index c70c9004..47a15975 100644 --- a/src/audio.c +++ b/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); |
