Results 1 to 5 of 5

Thread: sound

  1. #1

    Thread Starter
    Hyperactive Member notquitehere188's Avatar
    Join Date
    Dec 2004
    Posts
    403

    sound

    how can i put non beep sound in my program
    It's not just Good, It's Good enough!



    Spelling Eludes Me

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: sound

    Can you explain a bit more? Do you want your program to create a beep or does it beep and you want to eliminate it?


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    Hyperactive Member notquitehere188's Avatar
    Join Date
    Dec 2004
    Posts
    403

    Re: sound

    i want to make it so that when i shoot a machine gun, i can hear a machine gun sound which i already have saved on my computer
    It's not just Good, It's Good enough!



    Spelling Eludes Me

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: sound

    So I assume it's a wav file or something? Try searching for the sndPlaySound API.


    Has someone helped you? Then you can Rate their helpful post.

  5. #5
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: sound

    If you want to play only one sound without any mixing of two or more sounds, then the sndPlaySound API will be sufficient enough.

    However, if you want to play more than one sound at the same time or play music with sounds going on at the same time, use DirectX's DirectSound for the wav's and DirectShow for the mp3's. You can even do 3D directional sound too.

    You can find the DirectSound stuff here:

    http://externalweb.exhedra.com/Direc...TUT_DX8_DA.asp

    and the DirectShow stuff here:

    http://externalweb.exhedra.com/Direc...TUT_DX8_DS.asp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width