#include <rawdata_share_source_helper_interface.h>
◆ ~IZoomSDKShareAudioSender()
| virtual IZoomSDKShareAudioSender::~IZoomSDKShareAudioSender |
( |
| ) |
|
|
inlinevirtual |
◆ sendShareAudio()
| virtual SDKError IZoomSDKShareAudioSender::sendShareAudio |
( |
char * | data, |
|
|
unsigned int | data_length, |
|
|
int | sample_rate, |
|
|
ZoomSDKAudioChannel | channel ) |
|
pure virtual |
Sends audio raw data.
- Parameters
-
| data | The audio data's address. |
| data_length | The audio data's length, in even numbers. |
| sample_rate | The audio data's sampling rate. |
| channel | The channel type. Supported audio data properties: Channels: mono and stereo When the channel is mono, supported sample rates: 8000/11025/16000/32000/44100/48000/50000/50400/96000/192000 When the channel is stereo, supported sample rates: 8000/16000/32000/44100/48000/50000/50400/96000 resolution: little-endian, 16bit |
- 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.