FMLiveSwitchPacketizedAudioBuffer Class Reference

A AudioBuffer containing an RtpHeader. More...

Instance Methods

(FMLiveSwitchAudioBuffer *) - createInstance
 Creates a new instance. More...
 
(instancetype) - initWithDataBuffer:format:rtpHeader:
 Initializes a new instance of the FMLiveSwitchAudioBuffer class. More...
 
(instancetype) - initWithDataBuffers:format:rtpHeaders:
 Initializes a new instance of the FMLiveSwitchAudioBuffer class. More...
 
- Instance Methods inherited from FMLiveSwitchAudioBuffer
(void) - applyGain:
 Applies gain to this instance. More...
 
(double) - calculateLevel
 Calculates the level of this instance. More...
 
(FMLiveSwitchAudioBuffer *) - clone
 Clones this instance. More...
 
(double) - gain
 Gets the gain. More...
 
(bool) - generatedByPlc
 Gets a value indicating whether this buffer contains data generated by packet loss concealment (PLC). More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchAudioBuffer class. More...
 
(instancetype) - initWithDataBuffer:format:
 Initializes a new instance of the FMLiveSwitchAudioBuffer class. More...
 
(instancetype) - initWithDataBuffers:format:
 Initializes a new instance of the FMLiveSwitchAudioBuffer class. More...
 
(bool) - isDtmf
 Gets a value indicating whether this buffer has DTMF data. More...
 
(bool) - isL16
 Gets a value indicating whether this buffer has L16 audio. More...
 
(bool) - isMuted
 Gets a value indicating whether this instance has been muted. More...
 
(bool) - isOpus
 Gets a value indicating whether this buffer has Opus audio. More...
 
(bool) - isPcm
 Gets a value indicating whether this buffer has raw PCM audio. More...
 
(bool) - isPcma
 Gets a value indicating whether this buffer has PCMA audio. More...
 
(bool) - isPcmu
 Gets a value indicating whether this buffer has PCMU audio. More...
 
(bool) - mute
 Mutes this instance. More...
 
(void) - setGeneratedByPlc:
 Sets a value indicating whether this buffer contains data generated by packet loss concealment (PLC). More...
 
(NSString *) - toJson
 Serializes this instance to JSON. More...
 
- Instance Methods inherited from FMLiveSwitchMediaBuffer
(FMLiveSwitchDataBuffer *) - dataBuffer
 Gets the data buffer. More...
 
(NSMutableArray *) - dataBuffers
 Gets the data buffers. More...
 
(NSString *) - description
 Returns a string that represents this instance. More...
 
(int) - footprint
 Gets the approximate footprint of this media buffer by returning the sum of its data buffer lengths. More...
 
(TFormat) - format
 Gets the format. More...
 
(TBuffer) - free
 Frees the data buffers referenced by this instance. More...
 
(instancetype) - initWithDataBuffer:format:
 Initializes a new instance of the FMLiveSwitchMediaBuffer`2 class. More...
 
(instancetype) - initWithDataBuffers:format:
 Initializes a new instance of the FMLiveSwitchMediaBuffer`2 class. More...
 
(TBuffer) - keep
 Keeps the data buffers referenced by this instance. More...
 
(long long) - lastSequenceNumber
 Gets the last sequence number. More...
 
(bool) - recoveredByFec
 Gets a value indicating whether this buffer contains data recovered by forward error correction (FEC). More...
 
(FMLiveSwitchRtpPacketHeader *) - rtpHeader
 Gets the Rtp Packet Header for this media buffer. More...
 
(NSMutableArray *) - rtpHeaders
 Gets the RTP Packet Headers for this media buffer. More...
 
(int) - rtpSequenceNumber
 Gets the RTP sequence number. More...
 
(NSMutableArray *) - rtpSequenceNumbers
 Gets the RTP sequence numbers. More...
 
(long long) - sequenceNumber
 Gets the sequence number. More...
 
(NSMutableArray *) - sequenceNumbers
 Gets the sequence numbers. More...
 
(void) - setDataBuffer:
 Sets the data buffer. More...
 
(void) - setDataBuffers:
 Sets the data buffers. More...
 
(void) - setFormat:
 Sets the format. More...
 
(void) - setRecoveredByFec:
 Sets a value indicating whether this buffer contains data recovered by forward error correction (FEC). More...
 
(void) - setRtpHeader:
 Sets the Rtp Packet Header for this media buffer. More...
 
(void) - setRtpHeaders:
 Sets the RTP Packet Headers for this media buffer. More...
 
(void) - setSequenceNumber:
 Sets the sequence number. More...
 
(void) - setSequenceNumbers:
 Sets the sequence numbers. More...
 
(void) - setSourceId:
 Sets the source identifier. More...
 
(NSString *) - sourceId
 Gets the source identifier. More...
 
(bool) - tryKeep
 Attempts to keep the data buffers referenced by this instance. More...
 

Class Methods

(FMLiveSwitchPacketizedAudioBuffer *) + packetizedAudioBufferWithDataBuffer:format:rtpHeader:
 Initializes a new instance of the FMLiveSwitchAudioBuffer class. More...
 
(FMLiveSwitchPacketizedAudioBuffer *) + packetizedAudioBufferWithDataBuffers:format:rtpHeaders:
 Initializes a new instance of the FMLiveSwitchAudioBuffer class. More...
 
- Class Methods inherited from FMLiveSwitchAudioBuffer
(FMLiveSwitchAudioBuffer *) + audioBuffer
 Initializes a new instance of the FMLiveSwitchAudioBuffer class. More...
 
(FMLiveSwitchAudioBuffer *) + audioBufferWithDataBuffer:format:
 Initializes a new instance of the FMLiveSwitchAudioBuffer class. More...
 
(FMLiveSwitchAudioBuffer *) + audioBufferWithDataBuffers:format:
 Initializes a new instance of the FMLiveSwitchAudioBuffer class. More...
 
(FMLiveSwitchAudioBuffer *) + createSilenceWithDuration:clockRate:channelCount:
 Creates a silent audio buffer with the specified duration, clock rate, and channel count. More...
 
(FMLiveSwitchAudioBuffer *) + createSilenceWithDuration:config:
 Creates a silent audio buffer with the specified duration and configuration. More...
 
(FMLiveSwitchAudioBuffer *) + createSoundWithTimestamp:duration:clockRate:channelCount:
 Creates an audio buffer with the specified duration, clock rate, and channel count, a frequency of 440Hz, and an amplitude of 16,384. More...
 
(FMLiveSwitchAudioBuffer *) + createSoundWithTimestamp:duration:clockRate:channelCount:frequency:
 Creates a silent audio buffer with the specified duration, clock rate, channel count, and frequency, and an amplitude of 16,384. More...
 
(FMLiveSwitchAudioBuffer *) + createSoundWithTimestamp:duration:clockRate:channelCount:frequency:amplitude:
 Creates a silent audio buffer with the specified duration, clock rate, channel count, frequency, and amplitude. More...
 
(FMLiveSwitchAudioBuffer *) + createSoundWithTimestamp:duration:config:
 Creates an audio buffer with the specified duration and configuration, a frequency of 440Hz, and an amplitude of 16,384. More...
 
(FMLiveSwitchAudioBuffer *) + createSoundWithTimestamp:duration:config:frequency:
 Creates a silent audio buffer with the specified duration, configuration, and frequency, and an amplitude of 16,384. More...
 
(FMLiveSwitchAudioBuffer *) + createSoundWithTimestamp:duration:config:frequency:amplitude:
 Creates a silent audio buffer with the specified duration, configuration, frequency, and amplitude. More...
 
(NSMutableArray *) + fromJsonArrayWithAudioBuffersJson:
 Deserializes an array of instances from JSON. More...
 
(FMLiveSwitchAudioBuffer *) + fromJsonWithAudioBufferJson:
 Deserializes an instance from JSON. More...
 
(int) + getMinimumBufferLengthWithDuration:clockRate:channelCount:
 Gets the minimum data buffer length for a given duration, clock rate, and channel count. More...
 
(int) + getMinimumBufferLengthWithDuration:config:
 Gets the minimum data buffer length for a given duration and configuration. More...
 
(NSString *) + toJsonArrayWithAudioBuffers:
 Serializes an array of instances to JSON. More...
 
(NSString *) + toJsonWithAudioBuffer:
 Serializes an instance to JSON. More...
 
- Class Methods inherited from FMLiveSwitchMediaBuffer
(FMLiveSwitchMediaBuffer *) + mediaBuffer
 Initializes a new instance of the FMLiveSwitchMediaBuffer`2 class. More...
 
(FMLiveSwitchMediaBuffer *) + mediaBufferWithDataBuffer:format:
 Initializes a new instance of the FMLiveSwitchMediaBuffer`2 class. More...
 
(FMLiveSwitchMediaBuffer *) + mediaBufferWithDataBuffers:format:
 Initializes a new instance of the FMLiveSwitchMediaBuffer`2 class. More...
 

Additional Inherited Members

- Protected Attributes inherited from FMLiveSwitchMediaBuffer
 __pad0__: FMLiveSwitchDynamic- (TBuffer) clone
 

Detailed Description

A AudioBuffer containing an RtpHeader.

Method Documentation

◆ createInstance

- (FMLiveSwitchAudioBuffer*) createInstance

Creates a new instance.

Implements FMLiveSwitchAudioBuffer.

◆ initWithDataBuffer:format:rtpHeader:

- (instancetype) initWithDataBuffer: (FMLiveSwitchDataBuffer *)  dataBuffer
format: (FMLiveSwitchAudioFormat *)  format
rtpHeader: (FMLiveSwitchRtpPacketHeader *)  rtpHeader 

Initializes a new instance of the FMLiveSwitchAudioBuffer class.

Parameters
dataBufferThe data buffer.
formatThe format.
rtpHeaderThe RTP header.

◆ initWithDataBuffers:format:rtpHeaders:

- (instancetype) initWithDataBuffers: (NSMutableArray *)  dataBuffers
format: (FMLiveSwitchAudioFormat *)  format
rtpHeaders: (NSMutableArray *)  rtpHeaders 

Initializes a new instance of the FMLiveSwitchAudioBuffer class.

Parameters
dataBuffersThe data buffers.
formatThe format.
rtpHeadersThe RTP headers.

◆ packetizedAudioBufferWithDataBuffer:format:rtpHeader:

+ (FMLiveSwitchPacketizedAudioBuffer*) packetizedAudioBufferWithDataBuffer: (FMLiveSwitchDataBuffer *)  dataBuffer
format: (FMLiveSwitchAudioFormat *)  format
rtpHeader: (FMLiveSwitchRtpPacketHeader *)  rtpHeader 

Initializes a new instance of the FMLiveSwitchAudioBuffer class.

Parameters
dataBufferThe data buffer.
formatThe format.
rtpHeaderThe RTP header.

◆ packetizedAudioBufferWithDataBuffers:format:rtpHeaders:

+ (FMLiveSwitchPacketizedAudioBuffer*) packetizedAudioBufferWithDataBuffers: (NSMutableArray *)  dataBuffers
format: (FMLiveSwitchAudioFormat *)  format
rtpHeaders: (NSMutableArray *)  rtpHeaders 

Initializes a new instance of the FMLiveSwitchAudioBuffer class.

Parameters
dataBuffersThe data buffers.
formatThe format.
rtpHeadersThe RTP headers.