Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the cooperative level of the application for this sound device.
Definition
Visual Basic | Public Sub SetCooperativeLevel( _ ByVal owner As Control ![]() ByVal level As CooperativeLevel _ ) |
---|---|
C# | public void SetCooperativeLevel( Control ![]() CooperativeLevel level ); |
C++ | public: void SetCooperativeLevel( Control ![]() CooperativeLevel level ); |
JScript | public function SetCooperativeLevel( owner : Control ![]() level : CooperativeLevel ); |
Parameters
owner | System.Windows.Forms.Control The System.Windows.Forms.Control ![]() |
level | Microsoft.DirectX.DirectSound.CooperativeLevel The requested cooperative level. Specify one of the values shown in the following table |
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. |
ArgumentException![]() | 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. |