CooperativeLevel Enumeration (Microsoft.DirectX.DirectSound)

Contains constants for a Device object's cooperative level.


Visual Basic Public Enum CooperativeLevel
C# public enum CooperativeLevel
C++ public enum class CooperativeLevel
JScript public enum CooperativeLevel


Member Value Description
Normal 1 Sets the normal level. 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.
Priority 2 Sets the priority level. Applications with this cooperative level can have buffers that use the Format property and devices that call the Compact method.
WritePrimary 4 Sets the write-primary level. The application has write access to the primary buffer. No secondary buffers can be played. This level cannot be set if the DirectSound driver is being emulated for the device; that is, if the Device.Caps property returns the EmulateDriver flag in the Caps structure.


The application must set the cooperative level by calling this method before its buffers can be played. The recommended cooperative level is Priority.

Enumeration Information

Namespace Microsoft.DirectX.DirectSound
Assembly Microsoft.DirectX.DirectSound (microsoft.directx.directsound.dll)
Strong Name Microsoft.DirectX.DirectSound,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492

See Also