Hi, i'm trying to understand how to clean a sound file from the memory when the file is no longer needed,
Exemple :
You can get the bip here :
[url]http://mcfox666.free.fr/sfx/bip.ogg[/url]
The code gave me :
As you can see, after the "stop and clean" the sound file seams to be still here. How can I realy release it from mem ?
Thanks
McFox
Exemple :
Graphics 1,1,0 FlushMem() Print "Starting "+MemAlloced() WaitKey sndSfx = LoadSound("sfx\bip.ogg",True) chan = PlaySound(sndSfx) FlushMem() Print "Playing Sound File "+MemAlloced() WaitKey StopChannel chan Release sndSfx Release sound Release chan FlushMem() Print "Stop & Clean "+MemAlloced() WaitKey
You can get the bip here :
[url]http://mcfox666.free.fr/sfx/bip.ogg[/url]
The code gave me :
Starting 85040
Playing Sound File 87712
Stop & Clean 87640
Playing Sound File 87712
Stop & Clean 87640
As you can see, after the "stop and clean" the sound file seams to be still here. How can I realy release it from mem ?
Thanks
McFox