[Openal] Mute when switch windows

Dave Shillito dave.shillito at kuju.com
Wed Jul 18 10:08:59 PDT 2007


Hi All, 

I have just switched our app over from DirectSound to OpenAL.

In the DirectSound version of the app when we run windowed and switch
focus to a new window our sound would be muted.  Now in the OpenAL
version the sound continues.  

I think this was since I used "SetCooperativeLevel(hwnd,
DSSCL_PRIORITY)" in DirectSound.

Is it possible to recreate the DirectSound behaviour in OpenAL?

I was looking at alcSuspendContext & alcProcessContext, but was unclear
as to what would happen if the app continued to run - triggering sounds
in the background.  

Cheers,

DAve





__________________________________________________________________________________________________________________________________________
Information contained in this e-mail is intended for the use of the addressee only, and is confidential and may be the subject of Legal Professional Privilege.  Any dissemination, distribution, copying or use of this communication without prior permission of the addressee is strictly prohibited.The views of the author may not necessarily constitute the views of Kuju Entertainment Ltd. Nothing in this email shall bind Kuju Entertainment Ltd in any contract or obligation.

The contents of an attachment to this e-mail may contain software viruses which could damage your own computer system. While Kuju Entertainment has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checks before opening the attachment.

Registered Office : 10 Woodside Park, Catteshall Lane, Godalming, Surrey, UK, GU7 1LG. Company Number : 3481384.Company Registered in England.
__________________________________________________________________________________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
_________________________________________________________________________________________________________________________________________



More information about the Openal mailing list