Any way to increase size of audio buffer?

BlitzMax Forums/BlitzMax Programming/Any way to increase size of audio buffer?

sswift(Posted 2006) [#1]
I've found that if I load several large oggs at once in quick succession to decompress them, the music I have playing stutters. Apparently max isn't giving time back to the audio system to update the buffer, so I was wondering if it is possible to increase the size of the buffer, or if there's some other solution to this besides simply not playing the music while the oggs load.


Perturbatio(Posted 2006) [#2]
This post addresses issues people were having with sound stuttering, as far I know there's not an easy way to do it (yet). I had suggested having the ability to change the buffer size, but it hasn't been added yet.

You can however hack the module source using the instructions in that thread.


sswift(Posted 2006) [#3]
Hm. I'm not sure I want to increase the buffer that much all the time or the sounds will get delayed.

The real problem is probably not the buffer size but either the ogg code not giving back cpu time to the sound module, or the file writing code I'm uisng to write the decompressed wavs isn't giving back any time. That code uses the standard Blitzmax file writing commands.