InitDriversType method |
|
Remarks
Initializes the type of drivers (DirectSound or WASAPI) for devices managed by the control. This method can be called only once and will affect any other instance of the control inside the application. If the control should be used in conjunction with the Audio Dj Studio for .NET control or with the Audio Sound Recorder for .NET control, these ones would be affected too.
The call to this method must be performed before calling any other method that will access the component, possibly in the container form initialization function: calling this method inside the constructor function of the container form will not work and could cause unpredictable results.
For further details about the use of WASAPI see the How to manage audio playback through WASAPI tutorial.
Syntax
[Visual Basic] Public Function InitDriversType ( nDriverType as enumDriverTypes ) as enumErrorCodes |
[C#] public enumErrorCodes InitDriversType ( enumDriverTypes nDriverType ); |
[C++] public: enumErrorCodes InitDriversType ( enumDriverTypes nDriverType ); |
Parameter |
Description |
|||||||||
|
|
|||||||||
nDriverType |
Type of drivers managed by the control. Supported values are the following:
|
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |