[MAXGUI] Playing audio after screen update?

BlitzMax Forums/BlitzMax Programming/[MAXGUI] Playing audio after screen update?

Grisu(Posted 2006) [#1]
Hello all!

My current problem is that when I'm playing ogg files with a maxgui app, the whole app hangs for a second (CPU usage is very high) and the screen is not updated with new info (texts, Listboxentries etc) until the audio started playing.

Is there a way to get around this? Redrsw gadgets first and then play audio?

Is the fmod lib better (quality / less cpu usage) for playing music than the native commands?

Grisu


ozak(Posted 2006) [#2]
Isn't it because the entire ogg is loaded into memory with the current system, hence the delay.


Dreamora(Posted 2006) [#3]
loaded and decompessed, yes ...
the current system how ogg is handled is quite useless normally ... (especially it takes several times longer to load than it should at worst)


Grisu(Posted 2006) [#4]
Is there any workaround?

I can't preload 200 oggfiles.
That would take ages and boost memory usage a LOT.

Mutithreadding?