LoadAudioSample

BlitzMax Forums/BlitzMax Programming/LoadAudioSample

Ked(Posted 2008) [#1]
Is there a way to make LoadAudioSample() load sound and music files faster? It seems to take about two to four seconds to load.

Thanks.


Retimer(Posted 2008) [#2]
I have the same problem with .ogg files [even small ones]. I haven't tested it, but have you tried using a .wav instead?


Ked(Posted 2008) [#3]
I'll try loading a .wav sometime tonight.


Brucey(Posted 2008) [#4]
The main problem is that audio like a .ogg is loaded into memory as a sample - ie. it is decompressed in memory, and hangs around waiting to be played. Okay if you have some short sound effects, not so great if you want to play some background music.

You might find a third party sound module that supports streaming will help you if memory/time is an issue.


GfK(Posted 2008) [#5]
MaxMod works quite well.