Audio device test interface.
More...
#include <setting_service_interface.h>
Audio device test interface.
Definition at line 429 of file setting_service_interface.h.
◆ SetEvent()
Audio device test callback handler.
- Parameters
-
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see the SDKError enum.
- Note
- Call the function before using any other interface of the same class.
◆ SetTimerInterval()
virtual SDKError ITestAudioDeviceHelper::SetTimerInterval |
( |
unsigned int | timerInterval | ) |
|
|
pure virtual |
Set the time interval for audio test.
- Parameters
-
- Note
- With this function, the user can modify the time interval instead of 200. The time interval varies only from 50 to 1000 in millisecond.
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see the SDKError enum.
- Note
- This interface will stop the mic/speaker test(if there is). It is suggested to call it before audio test.
◆ TestMicPlayRecording()
virtual SDKError ITestAudioDeviceHelper::TestMicPlayRecording |
( |
| ) |
|
|
pure virtual |
Play the mic recorded sound. If there is no mic testing, SDK return an error.
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see the SDKError enum.
- Note
- The function is disabled if no event handler is set.
◆ TestMicStartRecording()
virtual SDKError ITestAudioDeviceHelper::TestMicStartRecording |
( |
const zchar_t * | deviceID = nullptr | ) |
|
|
pure virtual |
Start to test the mic.
- Parameters
-
deviceID | Specify to test a mic device. If the param is a wrong mic ID, the SDK will return an error. Otherwise the SDK tests the specified device and sets it as selected. The SDK will test the default device if no parameter is input. |
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see the SDKError enum.
- Note
- The function is disabled if no event handler is set.
◆ TestMicStopTesting()
virtual SDKError ITestAudioDeviceHelper::TestMicStopTesting |
( |
| ) |
|
|
pure virtual |
Stop the mic test. The SDK will return an error if there is no mic test.
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see the SDKError enum.
- Note
- The function is disabled if no event handler is set.
◆ TestSpeakerStartPlaying()
virtual SDKError ITestAudioDeviceHelper::TestSpeakerStartPlaying |
( |
const zchar_t * | deviceID = nullptr | ) |
|
|
pure virtual |
Start to test the speaker.
- Parameters
-
deviceID | Specify to test a speaker device. If the param is a wrong speaker ID, the SDK will return an error. Otherwise the SDK tests the specified device and sets it as selected. The SDK will test the default device if no parameter is input. |
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see the SDKError enum.
- Note
- The function is disabled if no event handler is set.
◆ TestSpeakerStopPlaying()
virtual SDKError ITestAudioDeviceHelper::TestSpeakerStopPlaying |
( |
| ) |
|
|
pure virtual |
Stop the speaker test. The SDK will return an error if there is no speaker test.
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see the SDKError enum.
- Note
- The function is disabled if no event handler is set.