Audio device testing callback events.
More...
#include <setting_service_interface.h>
Audio device testing callback events.
Definition at line 398 of file setting_service_interface.h.
◆ ~ITestAudioDeviceHelperEvent()
virtual ITestAudioDeviceHelperEvent::~ITestAudioDeviceHelperEvent |
( |
| ) |
|
|
inlinevirtual |
◆ OnMicSpkVolumeChanged()
virtual void ITestAudioDeviceHelperEvent::OnMicSpkVolumeChanged |
( |
unsigned int | MicVolume, |
|
|
unsigned int | SpkVolume ) |
|
pure virtual |
Notify the current mic or speaker volume when testing.
- Parameters
-
MicVolume | Specify the volume of the mic. |
SpkVolume | Specify the volume of the speaker. |
◆ OnNoAudioDeviceIsUseful()
virtual void ITestAudioDeviceHelperEvent::OnNoAudioDeviceIsUseful |
( |
bool | bMicOrSpk | ) |
|
|
pure virtual |
Notify that either mic device or speaker device is not found.
- Parameters
-
bMicOrSpk | true means no mic device. False no speaker device. |
◆ OnSelectedAudioDeviceIsChanged()
virtual void ITestAudioDeviceHelperEvent::OnSelectedAudioDeviceIsChanged |
( |
| ) |
|
|
pure virtual |
Notify the user that a mic/speaker device is selected when testing. Then the SDK will close the mic/speaker testing. The user shall restart the test manually if he still wants to test.
◆ OnTestMicStatusChanged()
virtual void ITestAudioDeviceHelperEvent::OnTestMicStatusChanged |
( |
SDK_TESTMIC_STATUS | status, |
|
|
bool & | bHandled ) |
|
pure virtual |
Notify the mic status when testing.
- Parameters
-
status | The mic status. For more details, see SDK_TESTMIC_STATUS enum. |
bHandled | The SDK default logic won't handle the mic status the value is set to be true. For more details, see SDK_TESTMIC_STATUS. |
- Note
- The enuCanPlay status indicates that the SDK has recorded the microphone sound for the longest time (6 seconds). If the bHandled is not set to TURE hereby, the SDK will call TestMicStopTesting() itself.