Larger Sound files

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Larger Sound files

Post by es_91 »

Hi.

An Audio CD can hold up to 80 minutes of .wav-similar sound. Those can be stored in 1 track. PureBasic (or is it Windows itself?) however can only play up to 256 MB (guess) per file. Larger .wav files (and propably .flac and .ogg, too) can not be loaded, nor played.

Is there some chance that we can one day load larger files?

Regards,

es_91.
:mrgreen:
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Larger Sound files

Post by PB »

As a workaround, you can play longer WAV sounds directly off hard drive like this:

Code: Select all

PlaySound_("c:\sound.wav",0,#SND_ASYNC) ; App continues after sound starts.
PlaySound_("c:\sound.wav",0,#SND_SYNC) ; App pauses until sound stops.
This works fine for me with an 895 MB WAV file at 16-bit Stereo.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Re: Larger Sound files

Post by es_91 »

Oh, Thank You. :)
:mrgreen:
Post Reply