[Openal] deprecated alut - Loading wav
jdf [zionarea.org]
zionarea at free.fr
Wed Mar 30 08:36:31 PST 2005
Okay, thanks a lot for your time and disponibility. I appreciate a lot.
I think I'll go my own way now :)
best regards,
Jdf
Selon "Adam D. Moss" <adam at gimp.org>:
> jdf [zionarea.org] wrote:
> > I'm lost with bits, formats and freq... audiofile doesn't provide
> > the same things: I've got format but nothing tells me this is the
> > same, and I've got rate and width.
> ...
> > format: 401 (what's that ?)
>
> You'll have to ask the audiofile docs. :) It probably means something
> like 'little-endian, signed, 1 channel' or similar.
>
> > rate: 22050 (okay but where to put it in al ?)
>
> This is the final parameter to alBufferData().
>
> > width: 16 (where to put it in al too ?)
>
> This also goes into the alBufferData() call. When width is
> 16, the second parameter to alBufferData() will likely be
> AL_FORMAT_MONO16 (if the input has 1 channel) or AL_FORMAT_STEREO16
> (if the input has 2 channels).
>
> http://www.openal.org/oalspecs-annote/x1366.html#AEN1427
>
> --Adam
> --
> Adam D. Moss - adam at gimp.org
> _______________________________________________
> openal mailing list
> openal at opensource.creative.com
> http://opensource.creative.com/mailman/listinfo/openal
>
More information about the Openal
mailing list