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

A custom audio source that can be fed any raw audio data for publishing. More...

#import <source.h>

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

Instance Methods

(MCTrack *) - startCapture
 
(void) - onAudioFrame:
 
(bool) - isCapturing
 
(void) - stopCapture
 Stops the underlying audio tracks and informs the SDK to stop any pending operations related to this custom source.
 
 initWithCppSource:
 
- Instance Methods inherited from MCSource
(MCSourceType) - getType
 
(NSString *) - getName
 
(NSString *) - getUniqueId
 
(NSString *) - getTypeAsString
 

Detailed Description

A custom audio source that can be fed any raw audio data for publishing.

Method Documentation

◆ isCapturing

- (bool) isCapturing

Query whether the source is currently capturing.

  • Returns: True if the application is capturing, false otherwise.

◆ onAudioFrame:

- (void) onAudioFrame: (MCAudioFrame *)  frame

To be called whenever the application wishes to feed audio frames to the source.

  • Parameters:
    • frame: An audio frame to feed. See MCAudioFrame and MCCMSampleBufferFrame for possible audio frames to feed. Currently only 48kHz and 44.1kHz are supported sample formats.

◆ startCapture

- (MCTrack *) startCapture

Starts capture. Effectively creates an audio track that can be added to the publisher.

  • Returns: An audio track. See MCPublisher/addTrackWithAudioTrack:completionHandler: to learn how to attach this track to a publisher.

◆ stopCapture

- (void) stopCapture

Stops the underlying audio tracks and informs the SDK to stop any pending operations related to this custom source.


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