Unity Video SDK API Reference Documentation
Loading...
Searching...
No Matches
ZMVideoSDKAudioRawData Class Reference

Public Member Functions

 ZMVideoSDKAudioRawData (IntPtr _rawBuffer, int _bufferLen, int _sampleRate, int _channelNum)
 

Data Fields

byte[] buffer
 
int bufferLen
 
int sampleRate
 
int channelNum
 

Detailed Description

Definition at line 24 of file ZMVideoSDKVideoRawData.cs.

Constructor & Destructor Documentation

◆ ZMVideoSDKAudioRawData()

ZMVideoSDKAudioRawData.ZMVideoSDKAudioRawData ( IntPtr  _rawBuffer,
int  _bufferLen,
int  _sampleRate,
int  _channelNum 
)
inline

Definition at line 31 of file ZMVideoSDKVideoRawData.cs.

32 {
33 bufferLen = _bufferLen;
34 sampleRate = _sampleRate;
35 channelNum = _channelNum;
36 buffer = new byte[bufferLen];
37 Marshal.Copy(_rawBuffer, buffer, 0, bufferLen);
38 }

References buffer, bufferLen, channelNum, and sampleRate.

Field Documentation

◆ buffer

byte [] ZMVideoSDKAudioRawData.buffer

Definition at line 26 of file ZMVideoSDKVideoRawData.cs.

Referenced by ZMVideoSDKAudioRawData().

◆ bufferLen

int ZMVideoSDKAudioRawData.bufferLen

Definition at line 27 of file ZMVideoSDKVideoRawData.cs.

Referenced by ZMVideoSDKAudioRawData().

◆ channelNum

int ZMVideoSDKAudioRawData.channelNum

Definition at line 29 of file ZMVideoSDKVideoRawData.cs.

Referenced by ZMVideoSDKAudioRawData().

◆ sampleRate

int ZMVideoSDKAudioRawData.sampleRate

Definition at line 28 of file ZMVideoSDKVideoRawData.cs.

Referenced by ZMVideoSDKAudioRawData().