Wave-File-Headers...
- Posted by PQ <quistnet at HOTMAIL.COM> Jul 16, 2000
- 403 views
------=_NextPart_000_000B_01BFEF2A.A3EE94D0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hy, I ran in to a BASIC program, that translates e.g. sinus-waves to a wave-file, and translated it into Euphoria. It works perfectly, the created wave-files can be played with Windows = software. I used a standard 8Bit-Mono-22050 Header --> WavHead22050 but the 8Bit-Mono-44100 Header is a little different --> WavHead44100 I have no experience with wave-file-formats so completely trusted the = headers, I only know where I put the length of the file. Can anyone explain the difference between these headers and also what all those numbers explain. --------------------------------------------- WavHead22050=3D "RIFF"& {0,0,0,0}& -- +36 "WAVE"&"fmt "& -- 23 65537 22050 22050 65544 "data" --------------------------------------------- WavHead44100=3D "RIFF"& {0,0,0,0}& -- +50 "WAVE"&"fmt "& -- 25 65537 44100 44100 65544 {0,0}& "fact"&{4,0,0,0}&{68,172,0,0}& -- 4 44100 "data" --------------------------------------------- Thanks, PQ ------=_NextPart_000_000B_01BFEF2A.A3EE94D0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2><BR>Hy,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>I ran in to a BASIC program, that = translates e.g.=20 sinus-waves<BR>to a wave-file, and translated it into Euphoria.<BR>It = works=20 perfectly, the created wave-files can be played with Windows = software.<BR>I used=20 a standard 8Bit-Mono-22050 Header --> WavHead22050<BR>but the = 8Bit-Mono-44100=20 Header is a little different --> WavHead44100</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>I have no experience with = wave-file-formats so=20 completely trusted the headers,<BR>I only know where I put the length of = the=20 file.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Can anyone explain the difference = between these=20 headers and also what<BR>all those numbers explain.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial=20 +36<BR>"WAVE"&"fmt=20 ,0,8,0}&<BR>--=20 23 65537 =20 22050 =20 22050 =20 +50<BR>"WAVE"&"fmt=20 {1,0,8,0}&<BR>--=20 25 65537 =20 bsp; =20 DIV> <DIV> </DIV> <DIV><FONT face=3DArial = ------=_NextPart_000_000B_01BFEF2A.A3EE94D0--