Thread: how to play play and stop wav files

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    90

    how to play play and stop wav files

    how to play play and stop wav files.
    i have one wav file i wnat to write a code to play the file.
    how can it is possible in c.

  2. #2
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    I think you should use an OS API.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    90

    i actually dealing with linux

    i actually dealing with linux.i this
    microsoft producys doesn't work.

  4. #4
    Registered User
    Join Date
    Apr 2006
    Posts
    2
    Use OpenGL or SDL.

  5. #5
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    Yes, it is possible. It is, however, not easy to write a sound recorder/player. You should download and review the code for the "Another Linux Sound Architecture" (ALSA). Their aplay/arecord is a good place to start, btw, it will also play your wav file for you.

    You'll also have to know some things about the header for wav files. . . Or, you could generate a raw file using SOX. . . outputting the file in the format you want. This makes things somewhat simpler.

    Andy

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX Question
    By bladerunner627 in forum Game Programming
    Replies: 2
    Last Post: 04-04-2005, 11:55 AM
  2. wav files
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 12-20-2001, 06:57 PM