OK there is definitely a memory leak with the OpenAL sound driver.
[EDIT] Test Code here: http://www.blitzbasic.com/Community/posts.php?topic=83229
I'm using OpenAL in Vista and FreeAudio in XP. I noticed that with my game on Vista the app memory consumption was going up FAST in Task Manager when I changed screens, but the GC memory level was stable. Note that the different screens play different music.
I tested the game on XP with Freeaudio and Task Manager and GC are stable. I used OpenAL on XP and Task Manager memory consumption shot up (about 4Mb every screen change due to size of music files) and GC is stable.
OK there is definitely a memory leak with the OpenAL sound driver.
I'm using OpenAL in Vista and FreeAudio in XP. I noticed that with my game on Vista the app memory consumption was going up FAST in Task Manager when I changed screens, but the GC memory level was stable. Note that the different screens play different music.
I tested the game on XP with Freeaudio and Task Manager and GC are stable. I used OpenAL on XP and Task Manager memory consumption shot up (about 4Mb every screen change due to size of music files) and GC is stable.
I found this exact same bug quite a long time ago but I can't remember with which driver it was (OpenAL or FreeAudio) anyway it got fixed at the time, or maybe I used some different code, I can't recall. I need to find it in the fixed bug bin...
What was happening back then was when you stopped a channel playing the sound was being left in memory and was causing task manager memory to shoot up but GC to remain stable. Sounds very similar.
My code for playing sounds and music is exactly the same for OpenAL and FreeAudio (no need to make it different) just the sound driver itself is different. So I don't know if the bug is in the BRL modules or OpenAL itself.
I'd love to make a test to demonstrate but today is the last day of working on my game, it goes to QA probably at about 4am! So if anyone else feels like making an app to help prove this (it's in everyone's interested to get it fixed), that would be fantastic! Thanks.
[EDIT] Test Code here: http://www.blitzbasic.com/Community/posts.php?topic=83229
I'm using OpenAL in Vista and FreeAudio in XP. I noticed that with my game on Vista the app memory consumption was going up FAST in Task Manager when I changed screens, but the GC memory level was stable. Note that the different screens play different music.
I tested the game on XP with Freeaudio and Task Manager and GC are stable. I used OpenAL on XP and Task Manager memory consumption shot up (about 4Mb every screen change due to size of music files) and GC is stable.
OK there is definitely a memory leak with the OpenAL sound driver.
I'm using OpenAL in Vista and FreeAudio in XP. I noticed that with my game on Vista the app memory consumption was going up FAST in Task Manager when I changed screens, but the GC memory level was stable. Note that the different screens play different music.
I tested the game on XP with Freeaudio and Task Manager and GC are stable. I used OpenAL on XP and Task Manager memory consumption shot up (about 4Mb every screen change due to size of music files) and GC is stable.
I found this exact same bug quite a long time ago but I can't remember with which driver it was (OpenAL or FreeAudio) anyway it got fixed at the time, or maybe I used some different code, I can't recall. I need to find it in the fixed bug bin...
What was happening back then was when you stopped a channel playing the sound was being left in memory and was causing task manager memory to shoot up but GC to remain stable. Sounds very similar.
My code for playing sounds and music is exactly the same for OpenAL and FreeAudio (no need to make it different) just the sound driver itself is different. So I don't know if the bug is in the BRL modules or OpenAL itself.
I'd love to make a test to demonstrate but today is the last day of working on my game, it goes to QA probably at about 4am! So if anyone else feels like making an app to help prove this (it's in everyone's interested to get it fixed), that would be fantastic! Thanks.