Subject: Re: [linux-audio-user] Funky wav file format 674f
From: Erik de Castro Lopo (erikd-lad_AT_mega-nerd.com)
Date: Mon Oct 13 2003 - 11:40:52 EEST
On Sun, 12 Oct 2003 20:12:48 -0400
Taybin Rutkin <taybin_AT_earthlink.net> wrote:
> On Sun, 2003-10-12 at 17:15, Pete Bessman wrote:
> > On Mon, 13 Oct 2003 06:59:54 +1000, "Erik de Castro Lopo"
> > <erikd-lad_AT_mega-nerd.com> said:
> > > Do you see what I see?
> >
> > HEH! So I wonder what that WAV header is doing in the file?
> > Hmm, and what superior set of heuristics is XMMS using
> > to sox and my sundry hacks to determine the files identity?
Actually, no. IMO determining the file type by the use of magic
numbers is preferable.
> Isn't one of the definitions of a WAV file is that it can merely wrap
> another file format? And usually that format is RIFF, but not
> necessarily?
Actually it is RIFF that wraps WAV.
However, take another look at that hexdump. The 'RIFF' chunk enclosed a
'WAVE' chunk and then the Ogg data is contained inside the 'data' chunk.
Personally I think that is dodgy; a typical hack on top of a bodge etc.
Erik
-- +-----------------------------------------------------------+ Erik de Castro Lopo nospam_AT_mega-nerd.com (Yes it's valid) +-----------------------------------------------------------+ "Reality is just a crutch for people that can't handle CyberSpace!!" - Hank Duderstadt
This archive was generated by hypermail 2b28 : Mon Oct 13 2003 - 11:58:54 EEST