This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
raylib-src
mirror of
https://github.com/raysan5/raylib
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
24
Wiki
Activity
Browse Source
Stop sound source before unloading
pull/218/head
Ray San
8 years ago
parent
46f95a730a
commit
fc7d4cef18
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/audio.c
+ 2
- 0
src/audio.c
View 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
)
;
Write
Preview
Loading…
Cancel
Save