Thread: Read/Write .WAV files in Windows?

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    204

    Read/Write .WAV files in Windows?

    Does anyone know how I can read and write audio files, such as .WAV files, from and to a hard drive and an array under Windows with C++?

  2. #2
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164
    Open the input file for read in binary
    Open the output file for write in binary
    Read the input file into an array.
    Write the array to the output file.

    Or you can just use the copy command in a Command Window.
    Or drag'n'drop in Exploder.
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 03-22-2009, 11:30 PM
  2. Dealing with windows files
    By Hexxx in forum C++ Programming
    Replies: 7
    Last Post: 08-17-2006, 02:11 PM
  3. windows header files not linking correctly
    By skorman00 in forum Windows Programming
    Replies: 2
    Last Post: 04-13-2005, 11:14 AM
  4. Dos commands hehe
    By Carp in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-17-2003, 02:51 PM
  5. .wav files
    By cassidyr in forum C Programming
    Replies: 2
    Last Post: 02-08-2002, 09:16 AM