sound

This is a discussion on sound within the Linux Programming forums, part of the Platform Specific Boards category; well im just board and im trying to do simple stuff right now.. itz 2:00 in the morning.... anywayz.. i ...

  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, 12:58 AM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 11:38 AM
  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, 02:34 PM

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