Page 1 of 1

Larger Sound files

Posted: Mon Aug 11, 2014 8:21 am
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.

Re: Larger Sound files

Posted: Mon Aug 11, 2014 10:07 am
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.

Re: Larger Sound files

Posted: Mon Aug 11, 2014 10:14 am
by es_91
Oh, Thank You. :)