Meeting SDK for Linux API Reference
Loading...
Searching...
No Matches
IZoomSDKShareAudioSender Class Referenceabstract

#include <rawdata_share_source_helper_interface.h>

Public Member Functions

virtual ~IZoomSDKShareAudioSender ()
virtual SDKError sendShareAudio (char *data, unsigned int data_length, int sample_rate, ZoomSDKAudioChannel channel)=0
 Sends audio raw data.

Detailed Description

Definition at line 44 of file rawdata_share_source_helper_interface.h.

Constructor & Destructor Documentation

◆ ~IZoomSDKShareAudioSender()

virtual IZoomSDKShareAudioSender::~IZoomSDKShareAudioSender ( )
inlinevirtual

Definition at line 47 of file rawdata_share_source_helper_interface.h.

47{}

Member Function Documentation

◆ sendShareAudio()

virtual SDKError IZoomSDKShareAudioSender::sendShareAudio ( char * data,
unsigned int data_length,
int sample_rate,
ZoomSDKAudioChannel channel )
pure virtual

Sends audio raw data.

Parameters
dataThe audio data's address.
data_lengthThe audio data's length, in even numbers.
sample_rateThe audio data's sampling rate.
channelThe 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
  1. 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.
  2. 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).
  3. 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.