Occurs when the recording device list updated
Occurs when the playback device list updated
Occurs when the current recording device changed
Clear away side effect.
Enumerates the audio playback devices.
true | false, default false.
The audio playback device list
Enumerates the audio recording devices.
true | false, default false.
The audio recording device list
Removes the specified listener from the listener array for the event named eventName.
Adds a one-time listener function for the event named eventName. The next time eventName is triggered, this listener is removed and then invoked.
Prompts the user for permission to use a media input which produces a MediaStream with tracks containing the requested types of media.
Sets the current audio recording device by the device id.
The unique id of the audio recording device
0 means success or fails otherwise
Starts the audio playback device test.
The path of the audio file for the audio playback device test
0 means success or fails otherwise
Starts the audio capturing device test. This method tests whether the audio capturing device works properly.
The audio media stream or fails otherwise
Stops the audio playback device test.
0 means success or fails otherwise
Stops the camera test.
0 means success or fails otherwise
The AudioDeviceManager class is a managing class to manage the audio devices and test them out.