Video SDK for Linux API Reference
Loading...
Searching...
No Matches
IZoomVideoSDKAudioSender Class Referenceabstract

Audio raw data sender interface. More...

#include <zoom_video_sdk_audio_send_rawdata_interface.h>

Public Member Functions

virtual ~IZoomVideoSDKAudioSender ()
virtual ZoomVideoSDKErrors Send (char *data, unsigned int data_length, int sample_rate, ZoomVideoSDKAudioChannel channel=ZoomVideoSDKAudioChannel_Mono)=0
 Send audio raw data. Audio sample must be 16-bit audio.

Detailed Description

Audio raw data sender interface.

Definition at line 15 of file zoom_video_sdk_audio_send_rawdata_interface.h.

Constructor & Destructor Documentation

◆ ~IZoomVideoSDKAudioSender()

virtual IZoomVideoSDKAudioSender::~IZoomVideoSDKAudioSender ( )
inlinevirtual

Definition at line 18 of file zoom_video_sdk_audio_send_rawdata_interface.h.

18{}

Member Function Documentation

◆ Send()

virtual ZoomVideoSDKErrors IZoomVideoSDKAudioSender::Send ( char * data,
unsigned int data_length,
int sample_rate,
ZoomVideoSDKAudioChannel channel = ZoomVideoSDKAudioChannel_Mono )
pure virtual

Send 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.
Note
Supported audio data properties: 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 Channels: mono and stereo resolution: little-endian, 16bit
  1. The size of a single input must not exceed the number of bytes corresponding to 100 ms of audio. Exceeding this limit returns ZoomVideoSDKErrors_RAWDATA_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 ZoomVideoSDKErrors_RAWDATA_SEND_TOO_FREQUENTLY 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.

References ZoomVideoSDKAudioChannel_Mono.