Numerical Recipes Forum  

Go Back   Numerical Recipes Forum > Obsolete Editions Forum > General Hints, Tips, and Tricks for Using NR

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2002, 09:34 AM
amitraj amitraj is offline
Member
 
Join Date: Aug 2002
Location: India
Posts: 10
Question .Wav Format

Hello once again!
I think a lot help i need.
Would some body tell me, when an Audio player reads a file, say a .wav file, does it read it in HEX or in DECIMAL?
I am really unable to get this. I know the format of .wav files. And i want to write a .wav file.
Now i am facing problem to write. Should i start wiht RIFF or Its HEX counterpart or its DECIMAL counterpart.
If anybody has some information do tell me.
Thank you.
Regards. bye take care.
helloamitraj@india.com
Reply With Quote
  #2  
Old 09-11-2002, 05:25 PM
Sherlock Sherlock is offline
Registered User
 
Join Date: Mar 2002
Posts: 12
Amitraj,

The contents of the WAV format file are a combination of ASCII text and binary numbers. For example, the "RIFF" that you speak of, is actually stored as 4 ASCII characters, but the audio data is stored as binary. A very detailed description, with a file dump of an actual example WAV file, can be found at

http://www.technology.niagarac.on.ca...mat.html<br />

The numerical contents of the file will normally be read in as bytes. The number of bytes per sample and the sample rate are specified in the header.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:57 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.