directsound and c#.

  • Thread starter Thread starter Kalpesh Modha
  • Start date Start date
K

Kalpesh Modha

Hello

I am writing a program that makes and window popup and plays a sound
repeatedly until the user does soemthing. however directsound for some
reason does not play the sound if is does not have focus.

Does anyone know how to get round this ?

thanks in advance.
Kalpesh Modha
 
I am writing a program that makes and window popup and plays a sound
repeatedly until the user does soemthing. however directsound for some
reason does not play the sound if is does not have focus.

Does anyone know how to get round this ?

thanks in advance.
Kalpesh Modha

What is your cooperation level ? i.e. IDirectSound8::SetCooperativeLevel. If
it's DSSCL_NORMAL, it should be working unless another app gets an exclusive
handle on your sound device while you don't have the focus.

Eric Robert
Software Engineer
 
hello.

it's
CooperativeLevel.Normal

Basically it's the playsound(C#) program that I am testing with which comes
with the DX SDK. If you click else where the sound stops playing.



regards

Kalpesh Modha.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top