Platform SDK: DirectX

CONST_DSSCLFLAGS

The CONST_DSSCLFLAGS enumeration is used in the level parameter of the DirectSound.SetCooperativeLevel method to specify the priority level.

Enum CONST_DSSCLFLAGS
    DSSCL_EXCLUSIVE    = 3
    DSSCL_NORMAL       = 1
    DSSCL_PRIORITY     = 2
    DSSCL_WRITEPRIMARY = 4
End Enum
DSSCL_EXCLUSIVE
Sets the application to the exclusive level. When it has the input focus, the application is the only one audible; sounds from applications with the DSBCAPS_GLOBALFOCUS flag set are muted. With this level, it also has all the privileges of the DSSCL_PRIORITY level. DirectSound restores the hardware format, as specified by the most recent call to the DirectSoundBuffer.SetFormat method, once the application gains the input focus.
DSSCL_NORMAL
Sets the application to a fully cooperative status. This level has the smoothest multitasking and resource-sharing behavior, but because it does not allow the primary buffer format to change, output is restricted to the default 8-bit format.
DSSCL_PRIORITY
Sets the application to the priority level. Applications with this cooperative level can call the DirectSoundBuffer.SetFormat method on the primary sound buffer.
DSSCL_WRITEPRIMARY
Sets the application to the highest priority level. The application has write access to the primary sound buffer. DirectX for Visual Basic applications should not set this cooperative level.