Thread: play wav's

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    2

    Question play wav's

    /* time-alert*/
    # include <stdio.h>
    # include <winmm.h>
    void main (void)
    {

    sndPlaySound("filename",synchroon, assynchroon);

    }

    sndPlaySound is the problem, I can't get this function to play my wave-file.

    does anybody know whitch librabry I should include or whitch other fuction I should use?

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    what's your OS? If it's Linux, you'll be needing to include the soundcard.h file.

    starX
    www.axisoftime.com

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    2
    I use windows98

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    I remember seeing something like this on the board a few days ago for windows programmers. Check in the archives, you should find something.

    starX
    www.axisoftime.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to play play and stop wav files
    By cnu_sree in forum Linux Programming
    Replies: 4
    Last Post: 08-14-2006, 11:11 PM
  2. pls post here tricks that you know of in C/C++, thanks
    By mickey in forum C++ Programming
    Replies: 55
    Last Post: 06-12-2003, 04:28 PM
  3. Gui Class With Tic Tac Toe
    By xxYukoxx in forum C++ Programming
    Replies: 1
    Last Post: 06-01-2003, 04:28 PM
  4. Cribbage Game
    By PJYelton in forum Game Programming
    Replies: 14
    Last Post: 04-07-2003, 10:00 AM
  5. Nibbles (DirectX) play my first completed game's Upgrade!
    By Jeremy G in forum Game Programming
    Replies: 3
    Last Post: 01-25-2003, 07:37 PM