Backgroundsound

Hi,

I'm developing a simple game and I would like to have a backgroundsound to be added to my project that always plays even when an other sound is played like when something is moved.

I can play sound but cant' play 2 sounds at same time that's the problem. but I heard you can play a backgroundsound with directx...

I have C#;DirectX 9.0 c and DirectX SDK (august 2006)

Please give me a sample code, thank you!



Answer this question

Backgroundsound

  • GeorgeBH

    You could try looking at the "drum machine" sample.

    More documentation can be found in the Managed DirectX DirectSound section.



  • laqula

    well yes that is correct, for directX related questions, since this will be the case, i will be moving the thread to the appropriate forum..

    im sure there are some examples in the SDK you can look at also.



  • Lanex

    Hi,

    Thank you for all the replies:

    - I looked already at the directX SDK samples but they are always so complicated for a beginner programmer as me.

    - I didn't find any easy way that could let you hear a backgroundsound. It is always so complicated.

    - I also looked at the last post with those links but they are to hard, for me.


  • Baji Prasad

    There are sound samples in the DirectX Sample Browser in your SDK. Did they not work for you

  • Backgroundsound