Audio device test interface.
More...
#include <setting_service_interface.h>
Audio device test interface.
◆ SetEvent()
Audio device test callback handler.
- Parameters
-
- Returns
- If the function succeeds, the return value is SDKErr_Success. Otherwise failed. To get extended error information, see SDKError enum.
◆ SetTimerInterval()
virtual SDKError ITestAudioDeviceHelper::SetTimerInterval |
( |
unsigned int |
timerInterval | ) |
|
|
pure virtual |
Set the time interval for audio test.
- Parameters
-
timerInterval | Usually the SDK sends the mic and speaker volumes every 200 ms by default via ITestAudioDeviceHelperEvent::OnMicSpkVolumnChanged(). 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. To get extended error information, see SDKError enum.
◆ 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. To get extended error information, see SDKError enum.
◆ TestMicStartRecording()
virtual SDKError ITestAudioDeviceHelper::TestMicStartRecording |
( |
const wchar_t * |
deviceID = NULL | ) |
|
|
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. To get extended error information, see SDKError enum.
◆ 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. To get extended error information, see SDKError enum.
◆ TestSpeakerStartPlaying()
virtual SDKError ITestAudioDeviceHelper::TestSpeakerStartPlaying |
( |
const wchar_t * |
deviceID = NULL | ) |
|
|
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. To get extended error information, see SDKError enum.
◆ 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. To get extended error information, see SDKError enum.
The documentation for this class was generated from the following file: