Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Problem writing a .wav file

Thread Tools

Problem writing a .wav file

Atri Mandal
Posts: n/a
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.


Reply With Quote
Victor Bazarov
Posts: n/a
"Atri Mandal" <(E-Mail Removed)> wrote...
> 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


Reply With Quote

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
encoding problem with BeautifulSoup - problem when writing parsedtext to file Greg Python 9 10-08-2011 03:30 PM
Any problems with writing the information into a file - Multi-users perform writing the same file at the same time ???? HNguyen ASP .Net 4 12-21-2004 01:53 PM
Question: Writing text file based TestBenches vs. Waveform file based simulation. BLF VHDL 4 08-07-2004 12:44 AM
A failure occurred writing to the resources file. Access is denied. -- RESX file is locked? -- WHY? Mark Kamoski ASP .Net 1 07-04-2003 12:02 PM