Problem writing a .wav file

Discussion in 'C++' started by Atri Mandal, Dec 15, 2003.

  1. Atri Mandal

    Atri Mandal Guest

    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
    Atri Mandal, Dec 15, 2003
    #1
    1. Advertising

  2. "Atri Mandal" <> 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 comp.games.development.audio

    Victor
    Victor Bazarov, Dec 15, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    4
    Views:
    13,981
    Jonathan Bromley
    Apr 8, 2005
  2. HNguyen
    Replies:
    4
    Views:
    2,401
    HNguyen
    Dec 21, 2004
  3. root
    Replies:
    3
    Views:
    684
    Knute Johnson
    Jul 11, 2007
  4. '2+
    Replies:
    2
    Views:
    489
  5. Guest
    Replies:
    0
    Views:
    78
    Guest
    Sep 2, 2003
Loading...

Share This Page