sound in DirectX

This is a discussion on sound in DirectX within the Windows Programming forums, part of the Platform Specific Boards category; hi guys: I include "DirectSound.h" and load and initialize the sound for example DX_SOUND explosion_sound I play it with explosion_sound.lpdSoundBuff->Play(0,0,0); ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    173

    sound in DirectX

    hi guys:
    I include "DirectSound.h" and load and initialize the sound for example
    DX_SOUND explosion_sound

    I play it with explosion_sound.lpdSoundBuff->Play(0,0,0);

    so the problem is that if I have mutiple explosion sounds like
    explosion_sound[num] and how can I know wheather some ones of the explosion sounds are finished, so I can stop them for the next turns
    Thank you for the help
    Don't laugh at me,I am just a SuperNewbie.

  2. #2
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    You might be better off putting this in the game dev board where more people there program in DX. Good luck!
    1978 Silver Anniversary Corvette

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    173
    sorry for that, but can you recommend some good boards for me?
    thanx
    Don't laugh at me,I am just a SuperNewbie.

  4. #4
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    No problem, and I was referring to the game programming board here at cprog.com...
    1978 Silver Anniversary Corvette

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, 12:54 PM
  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. DirectSound - multiple sounds
    By Magos in forum Game Programming
    Replies: 9
    Last Post: 03-03-2004, 04:33 PM
  5. sounds?
    By BODYBUILDNERD in forum C++ Programming
    Replies: 6
    Last Post: 12-06-2002, 03:34 PM

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