Video SDK for MacOS API Reference
Loading...
Searching...
No Matches
ZMVideoSDKShareAudioSender Class Reference

Interface to send share audio raw data. More...

#include <ZMVideoSDKShareHelper.h>

Inherits NSObject.

Instance Methods

(ZMVideoSDKErrors- sendShareAudio:dataLength:sampleRate:audioChannel:
 Sends audio raw data.
 

Detailed Description

Interface to send share audio raw data.

Definition at line 178 of file ZMVideoSDKShareHelper.h.

Method Documentation

◆ sendShareAudio:dataLength:sampleRate:audioChannel:

- (ZMVideoSDKErrors) sendShareAudio: (char *_Nullable) data
dataLength: (unsigned int) length
sampleRate: (int) rate
audioChannel: (ZMVideoSDKAudioChannel) channel 

Sends audio raw data.

Parameters
dataThe audio data address.
lengthThe audio data length. It must be even numbers.
rateThe audio data sampling rate.
channelThe channel type. Default type is ZoomVideoSDKAudioChannel_Mono.
Returns
If the function succeeds, the return value is ZMVideoSDKErrors_Success, otherwise failed.
Note
Support sample Rate 44100/48000/50000/50400/.