Wave-File-Headers...

new topic     » topic index » view thread      » older message » newer message

------=_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>&nbsp;</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 --&gt; WavHead22050<BR>but the =
8Bit-Mono-44100=20
Header is a little different --&gt; WavHead44100</FONT></DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
+36<BR>"WAVE"&amp;"fmt=20
,0,8,0}&amp;<BR>--=20
23&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 65537&nbsp;&nbsp;&nbsp;&nbsp;=20
22050&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
22050&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
+50<BR>"WAVE"&amp;"fmt=20
{1,0,8,0}&amp;<BR>--=20
25&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 65537&nbsp;&nbsp;&nbsp;&nbsp;=20
bsp;&nbsp;&nbsp;&nbsp;=20
DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial =

------=_NextPart_000_000B_01BFEF2A.A3EE94D0--

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu