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

#include <rawdata_audio_helper_interface.h>

Public Member Functions

virtual ~IZoomSDKAudioRawDataSender ()
virtual SDKError send (char *data, unsigned int data_length, int sample_rate, ZoomSDKAudioChannel channel=ZoomSDKAudioChannel_Mono)=0
 Sends audio raw data. Audio sample must be 16-bit audio.

Detailed Description

Definition at line 27 of file rawdata_audio_helper_interface.h.

Constructor & Destructor Documentation

◆ ~IZoomSDKAudioRawDataSender()

virtual IZoomSDKAudioRawDataSender::~IZoomSDKAudioRawDataSender ( )
inlinevirtual

Definition at line 30 of file rawdata_audio_helper_interface.h.

30{}

Member Function Documentation

◆ send()

virtual SDKError IZoomSDKAudioRawDataSender::send ( char * data,
unsigned int data_length,
int sample_rate,
ZoomSDKAudioChannel channel = ZoomSDKAudioChannel_Mono )
pure virtual

Sends audio raw data. Audio sample must be 16-bit audio.

Parameters
datathe audio data's address.
data_lengththe audio data's length. Must be an even number.
sample_ratethe 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
  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.
Returns
If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise, this function returns an error.

References ZoomSDKAudioChannel_Mono.