1. Wave-File-Headers...

------=_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 message » categorize

2. Re: Wave-File-Headers...

Patrick wrote:

> Can anyone explain the difference between
> these headers and also what all those numbers
> explain.

You can take a look at http://www.wotsit.org for the layout of just about
any file format you need.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

3. Re: Wave-File-Headers...

----- Original Message -----
From: David Cuny <dcuny at LANSET.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Sunday, July 16, 2000 3:27 PM
Subject: Re: Wave-File-Headers...


> Patrick wrote:
>
> > Can anyone explain the difference between
> > these headers and also what all those numbers
> > explain.
>
> You can take a look at http://www.wotsit.org for the layout of just about
> any file format you need.
>
> -- David Cuny

I know, but the headers I gave are not equal to those examples and
structures.

Bye,
PQ

new topic     » goto parent     » topic index » view message » categorize

4. Re: Wave-File-Headers...

Hello PQ,


>---------------------------------------------
>WavHead22050=
>"RIFF"&
>{0,0,0,0}&  -- +36
>"WAVE"&"fmt "&
>-- 23      65537     22050       22050       65544
>"data"
>---------------------------------------------
>WavHead44100=
>"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"



22050
44100

I think these are just different sample rates for the wave file.
If you use the wrong one when playing it will sound really fast
and high pitched or slow and low pitched. That's all I know
about it.

later,
Lewis Townsend
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu