On mardi 10 février 2009, Erik Hofman wrote:
> alex wrote:
> > Does OpenAL support any other sound file configuration other than .wav?
> > I have problems with OpenAL unable to buffer some ..wav files but runs
> > fine with other .wav files. Does anyone know of a particular reason for
> > this.
> > Your thoughts would be appreciated
>
> Like gerard already mentioned, the WAVE file is a container file that
> can handle about anything from 8-bit to 32-bit sound files either
> compressed or uncompressed. It is even possible to store an mp3 file in
> a file with a .wav extension. The alut wav file loader only handles a
> small subset of them; signed 8-bit, unsigned 16-bit, ulaw and alaw
> compressed and as of yesterday also the IMA4 compression type.
>
> Erik
>

Erik is right,

In addition to my "generic" answer.

When i get trouble with a sound file ( which happen very often :( )
I do the following:

I try to load it with Audacity ( at least version, 1.35 )

=>If it load correctly => you can see the curves and you can listen the sound
        ==>You check the rate ( 8000, 16000, 22050, 44100, 48000, 96000 ) , and 
if                              
required you convert to the right rate.
        ==>You check the  bits PCM ( 8, 16 , 32 float),  and if required you 
convert 
to the right bits PCM value.
        ==>Then Export the file to WAV format

=>If it do not load correctly, try with sox ( version 1.2) 
The command line for instance to convert the sound file to 48000 rate  24 bits 
PCM is:
sox -S  yoursoundorigin.vaw   -b 24 -r4800  yoursoundconverted.vaw

sox will tel you how was the original format of the sound, and convert it.

Then you can convert again that " yoursoundconverted.vaw" sound to a less rate 
and bit values ( Aircraft sound is not HIFI,  only NOISE :(  )  -r 8000 -b 8 

Doing this,  i have been able to save a lot of live recorded music done with 
an old  digital recorder.

I hope, it should do for you 


Cheers

BTW: you will notice that Audacity  is very accurate since you can improve the 
sound with it, with the filters and effects tools.

-- 
Gérard
http://pagesperso-orange.fr/GRTux/

J'ai décidé d'être heureux parce que c'est bon pour la santé. 
Voltaire


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to