#include <rawdata_audio_helper_interface.h>
◆ ~IZoomSDKAudioRawDataSender()
| virtual IZoomSDKAudioRawDataSender::~IZoomSDKAudioRawDataSender |
( |
| ) |
|
|
inlinevirtual |
◆ send()
Sends audio raw data. Audio sample must be 16-bit audio.
- Parameters
-
| data | the audio data's address. |
| data_length | the audio data's length. Must be an even number. |
| sample_rate | the audio data's sampling rate. When the channel is mono, supported sample rates: 8000/11025/16000/32000/44100/48000/50000/50400/96000/192000/2822400 When the channel is stereo, supported sample rates: 8000/16000/32000/44100/48000/50000/50400/96000/192000 |
- Note
- The size of a single input must not exceed the number of bytes corresponding to 100 ms of audio. Exceeding this limit returns SDKERR_SEND_TOO_MUCH_DATA_IN_SINGLE_TIME.
- Variable-length input is supported; it is recommended to send audio data in 10 ms, 20 ms, or 30 ms chunks (not exceeding 100 ms).
- If SDKERR_TOO_FREQUENT_CALL is returned, this is not a genuine error; please wait briefly before retrying—for example, sleep for 10 ms before attempting to send the data again.
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise, this function returns an error.
References ZoomSDKAudioChannel_Mono.