|
Post by tsinkala on Aug 25, 2009 10:43:38 GMT -5
Hi,
Each time playsound is called additional memory is alocated to the program. I observe this in task manager. Below is a code snippet. Does anybody know how to get around this memory issue?
dim sound sound=LoadSound(filename)
while true 'comment: can do any logic here before calling playsound playsound(sound)
wend
|
|
|
Post by matthew on Aug 25, 2009 11:23:12 GMT -5
I just tried the AsteroidDemo2 game & noticed that it was consuming about 200 extra bytes of memory every few seconds when a sound was playing. But I don't know whether this is just a basic4gl problem or if it's normal behaviour for most games written in other languages too. I wouldn't worry about it too much at the moment though as it isn't using up a large amount of memory.
|
|
|
Post by DJLinux on Aug 26, 2009 18:25:38 GMT -5
The sound of Asterroid "crashed" sometimes here i have 4 sound devices in my PC. But the FreeSound Plugin works without any problems and the last version has OGG support too.
Joshy
|
|
|
Post by tsinkala on Aug 27, 2009 8:37:51 GMT -5
Thank you, fsPlaySound(...) seems to solve the memory issue. However, the quality of the sound coming out is not as good as when you use PlaySound(...).
|
|