Thread: sound

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    227

    sound

    well im just board and im trying to do simple stuff right now.. itz 2:00 in the morning.... anywayz.. i want to creat something like a bomb sound in linux.. but i dont think that i have a header file cause sound... is there something else that i can do/ is there another way to creat soundz...?

  2. #2
    Registered User rohit's Avatar
    Join Date
    Feb 2002
    Posts
    69
    you can play with some cheap ways like

    system("esdplay somewavfile"); //general
    or
    system("artsplay wavefile"); //kde

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    Sound programming is something of a slippery slope, but it's not execively hard. First you'll want to include sys/soundcard.h. Then you'll want to take a look at the open sound programmers guide (free download). My guess is that you're going to be constructing your own wav player.

    I haven't heard of a way to create sound effects directly from C, however. You'll still need to make a sound file, and then play that.

    starX
    www.axisoftime.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sound lags in multi-thread version
    By VirtualAce in forum Game Programming
    Replies: 23
    Last Post: 08-27-2008, 11:54 AM
  2. Low latency sound effects
    By VirtualAce in forum Game Programming
    Replies: 0
    Last Post: 12-21-2004, 01:58 AM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 12:38 PM
  4. Help me modify my Sound Server
    By zdude in forum C Programming
    Replies: 1
    Last Post: 05-14-2003, 05:15 PM
  5. sounds?
    By BODYBUILDNERD in forum C++ Programming
    Replies: 6
    Last Post: 12-06-2002, 03:34 PM