MillicastSDK 2.0.0
Loading...
Searching...
No Matches
Instance Methods | List of all members
MCCMSampleBufferFrame Class Reference

Class responsible for initializing a MCAudioFrame from a CMSampleBuffer More...

#import <frames.h>

Inheritance diagram for MCCMSampleBufferFrame:
Inheritance graph
[legend]
Collaboration diagram for MCCMSampleBufferFrame:
Collaboration graph
[legend]

Instance Methods

(id) - initWithSampleBuffer:
 
- Instance Methods inherited from MCAudioFrame
 cppFrame
 
 initWithCppFrame:
 

Additional Inherited Members

- Properties inherited from MCAudioFrame
const void * data
 The audio data containing raw audio samples.
 
int bitsPerSample
 The number of bits per audio sample.
 
int sampleRate
 The sample rate of the audio data, which is either 48kHz or 44.1kHz.
 
size_t channelNumber
 The number of audio channels defining whether the audio is mono, stereo, or has more complex channel configurations.
 
size_t frameNumber
 The number of frames in the data array. The number of frames is dependent on the sample rate and chunk time.
 

Detailed Description

Class responsible for initializing a MCAudioFrame from a CMSampleBuffer

Method Documentation

◆ initWithSampleBuffer:

- (id) initWithSampleBuffer: (CMSampleBufferRef)  buffer

Initialize with a CMSampleBuffer

let sampleBuffer: CMSampleBuffer = ...
source.onAudioFrame(MCCMSampleBufferFrame(sampleBuffer))
Class responsible for initializing a MCAudioFrame from a CMSampleBuffer
Definition frames.h:88
Responsible for building MCCustomAudioSource.
Definition source.h:255
MCCustomAudioSource * build()

The documentation for this class was generated from the following file: