[Openal] Short question on WAV File Attributes
Sylvia Yun
khan21 at stanford.edu
Thu Jul 12 14:54:53 PDT 2007
Thanks, I think that solves the problem!
In case anyone was wondering: I just found that "N" stands for 'not
indexed', so that was not an issue... I copied and pasted it again to get a
single 'A' attribute... my idea was completely off :P.
On 7/12/07, Chris Robinson <chris.kcat at gmail.com> wrote:
>
> On Thursday 12 July 2007 02:05:05 pm Sylvia Yun wrote:
> > Hi hopefully this should take a second. I'm new to understanding the
> media
> > file formats (and the whole openAL thing in general).
> >
> > I have a basic openAL implementation and it works great for the .wav
> files
> > they provided. However, when I try to open other .wav files, they won't
> > play.
> >
> > Stepping through the code, it shows that it never loads the data
> > (0x00000000) and the size, frequency, etc. remain null (big negative
> > numbers). The only differences I could find between the wav files I
> could
> > play and the ones I couldn't is the file attributes (the ones I can play
> > are of type 'A', which I think has something to do with archival... and
> the
> > ones I can't play are 'AN'). They are all in the same folder.
> >
> > Am I thinking along the right tracks...? What exactly are the AN and A
> > attributes? All the wav files will play if I play in Yahoo Jukebox or
> > Windows Media Player.
>
> The file's attributes shouldn't be much of a problem as long as they're
> readable. Given that WMP can play it, it's sagfe to say it is.
>
> Does WMP say what format the data is? Sometimes people will put MP3 data
> into
> a .wav file, and OpenAL/ALUT won't read that. It could also be using
> WAVE_FORMAT_EXTENSIBLE, which ALUT also won't also read.
>
> The only formats ALUT can read, apparently, are WAVE_FORMAT_PCM and
> WAVE_FORMAT_MULAW. Other formats, such as MP3, ALAW, and ADPCM, won't
> work.
> _______________________________________________
> Openal mailing list
> Openal at opensource.creative.com
> http://opensource.creative.com/mailman/listinfo/openal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20070712/f7f93b9b/attachment.html
More information about the Openal
mailing list