play wav's

This is a discussion on play wav's within the C Programming forums, part of the General Programming Boards category; /* time-alert*/ # include <stdio.h> # include <winmm.h> void main (void) { sndPlaySound("filename",synchroon, assynchroon); } sndPlaySound is the problem, I ...

  1. #1
    Bob
    Bob is offline
    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
    Bob
    Bob is offline
    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-15-2006, 12:11 AM
  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, 05:28 PM
  3. Gui Class With Tic Tac Toe
    By xxYukoxx in forum C++ Programming
    Replies: 1
    Last Post: 06-01-2003, 05:28 PM
  4. Cribbage Game
    By PJYelton in forum Game Programming
    Replies: 14
    Last Post: 04-07-2003, 11: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21