Problem writing a .wav file

A

Atri Mandal

Hi,
Can anyone provide me some useful C++ code for creating/writing a .wav
file. I looked at some sites on the net and did something myself but
every time there is a "Damaged File or unsupported format error".
I need to create a wav file (PCM 16-bit mono with 44.1 K sampling rate).
Please let me know whether there are any sites which provide COMPLETE
code to write a .wav file. I can fill in with the necessary changes in
the data portion.

Thanks,
Atri
 
V

Victor Bazarov

Atri Mandal said:
Can anyone provide me some useful C++ code for creating/writing a .wav
file.[...]

This has nothing to do with C++ language. C++ has only generic means
for writing files and you probably are already using all of them. If
you need specifics on WAV file format, C++ language cannot help you.
Ask in a newsgroup where it's on topic, like comp.games.development.audio

Victor
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top