16 bit PCM to wav file conversion

M

m rouch

i am trying to convert a raw, uncompressed 16 bit PCM cut sampled at
8000 samples/sec converted to a wav file. i was under the impression
that all that was needed was to concat the cut onto a 44 byte wav file
header with the correct parameters set, but when i put in all the
parameters all i get is noise.

when i set the samples/sec to 16000 and # bits to 8 in the wav header i
get an ok cut, but there is a ton of noise compared with the original.
(i used the same header sox gives in the conversion). am i missing some
magical incantation?

any help would be appreciated.

-mike
 
W

Will Clark

Just a stab in the dark... you have got the bytes ordered correctly in your
16bit word? Try swapping the high and low bytes round and see if you get
noise that way!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top