Device.SetCooperativeLevel Method ()

Sets the cooperative level of the application for this sound device.

Overload List

public void SetCooperativeLevel(Control, CooperativeLevel);
public void SetCooperativeLevel(IntPtr, CooperativeLevel);

Remarks

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

Exceptions

AllocatedException

The request failed because resources, such as a priority level, were already in use by another caller.

ArgumentExceptionLeave Site

An invalid parameter was passed to the called method.

SoundException

Root exception type for all DirectSound exceptions. Derives from DirectXException.

UnsupportedException

The function called is not supported at this time.