An audio buffer. More...
Instance Methods | |
| (void) | - applyGain: |
| Applies gain to this instance. More... | |
| (double) | - calculateLevel |
| Calculates the level of this instance. More... | |
| (FMLiveSwitchAudioBuffer *) | - clone |
| Clones this instance. More... | |
| (FMLiveSwitchAudioBuffer *) | - createInstance |
| Creates a new 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 | |
| (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 | |
An audio buffer.
| - (void) applyGain: | (double) | gain |
Applies gain to this instance.
| gain | The gain. |
| + (FMLiveSwitchAudioBuffer*) audioBuffer |
Initializes a new instance of the FMLiveSwitchAudioBuffer class.
| + (FMLiveSwitchAudioBuffer*) audioBufferWithDataBuffer: | (FMLiveSwitchDataBuffer *) | dataBuffer | |
| format: | (FMLiveSwitchAudioFormat *) | format | |
Initializes a new instance of the FMLiveSwitchAudioBuffer class.
| dataBuffer | The data buffer. |
| format | The format. |
| + (FMLiveSwitchAudioBuffer*) audioBufferWithDataBuffers: | (NSMutableArray *) | dataBuffers | |
| format: | (FMLiveSwitchAudioFormat *) | format | |
Initializes a new instance of the FMLiveSwitchAudioBuffer class.
| dataBuffers | The data buffers. |
| format | The format. |
| - (double) calculateLevel |
Calculates the level of this instance.
| - (FMLiveSwitchAudioBuffer*) clone |
Clones this instance.
| - (FMLiveSwitchAudioBuffer*) createInstance |
Creates a new instance.
Implements FMLiveSwitchMediaBuffer.
Implemented in FMLiveSwitchPacketizedAudioBuffer.
| + (FMLiveSwitchAudioBuffer*) createSilenceWithDuration: | (int) | duration | |
| clockRate: | (int) | clockRate | |
| channelCount: | (int) | channelCount | |
Creates a silent audio buffer with the specified duration, clock rate, and channel count.
| duration | The duration in milliseconds. |
| clockRate | The clock rate. |
| channelCount | The channel count. |
| + (FMLiveSwitchAudioBuffer*) createSilenceWithDuration: | (int) | duration | |
| config: | (FMLiveSwitchAudioConfig *) | config | |
Creates a silent audio buffer with the specified duration and configuration.
| duration | The duration in milliseconds. |
| config | The configuration. |
| + (FMLiveSwitchAudioBuffer*) createSoundWithTimestamp: | (long long) | timestamp | |
| duration: | (int) | duration | |
| clockRate: | (int) | clockRate | |
| channelCount: | (int) | channelCount | |
Creates an audio buffer with the specified duration, clock rate, and channel count, a frequency of 440Hz, and an amplitude of 16,384.
| timestamp | The starting time of this buffer relative to the clock rate. |
| duration | The duration in milliseconds. |
| clockRate | The clock rate. |
| channelCount | The channel count. |
| + (FMLiveSwitchAudioBuffer*) createSoundWithTimestamp: | (long long) | timestamp | |
| duration: | (int) | duration | |
| clockRate: | (int) | clockRate | |
| channelCount: | (int) | channelCount | |
| frequency: | (float) | frequency | |
Creates a silent audio buffer with the specified duration, clock rate, channel count, and frequency, and an amplitude of 16,384.
| timestamp | The starting time of this buffer relative to the clock rate. |
| duration | The duration in milliseconds. |
| clockRate | The clock rate. |
| channelCount | The channel count. |
| frequency | The frequency. |
| + (FMLiveSwitchAudioBuffer*) createSoundWithTimestamp: | (long long) | timestamp | |
| duration: | (int) | duration | |
| clockRate: | (int) | clockRate | |
| channelCount: | (int) | channelCount | |
| frequency: | (float) | frequency | |
| amplitude: | (int) | amplitude | |
Creates a silent audio buffer with the specified duration, clock rate, channel count, frequency, and amplitude.
| timestamp | The starting time of this buffer relative to the clock rate. |
| duration | The duration in milliseconds. |
| clockRate | The clock rate. |
| channelCount | The channel count. |
| frequency | The frequency. |
| amplitude | The amplitude. |
| + (FMLiveSwitchAudioBuffer*) createSoundWithTimestamp: | (long long) | timestamp | |
| duration: | (int) | duration | |
| config: | (FMLiveSwitchAudioConfig *) | config | |
Creates an audio buffer with the specified duration and configuration, a frequency of 440Hz, and an amplitude of 16,384.
| timestamp | The starting time of this buffer relative to the clock rate. |
| duration | The duration in milliseconds. |
| config | The configuration. |
| + (FMLiveSwitchAudioBuffer*) createSoundWithTimestamp: | (long long) | timestamp | |
| duration: | (int) | duration | |
| config: | (FMLiveSwitchAudioConfig *) | config | |
| frequency: | (float) | frequency | |
Creates a silent audio buffer with the specified duration, configuration, and frequency, and an amplitude of 16,384.
| timestamp | The starting time of this buffer relative to the clock rate. |
| duration | The duration in milliseconds. |
| config | The configuration. |
| frequency | The frequency. |
| + (FMLiveSwitchAudioBuffer*) createSoundWithTimestamp: | (long long) | timestamp | |
| duration: | (int) | duration | |
| config: | (FMLiveSwitchAudioConfig *) | config | |
| frequency: | (float) | frequency | |
| amplitude: | (int) | amplitude | |
Creates a silent audio buffer with the specified duration, configuration, frequency, and amplitude.
| timestamp | The starting time of this buffer relative to the clock rate. |
| duration | The duration in milliseconds. |
| config | The configuration. |
| frequency | The frequency. |
| amplitude | The amplitude. |
| + (NSMutableArray*) fromJsonArrayWithAudioBuffersJson: | (NSString *) | audioBuffersJson |
Deserializes an array of instances from JSON.
| audioBuffersJson | The audio buffers JSON. |
| + (FMLiveSwitchAudioBuffer*) fromJsonWithAudioBufferJson: | (NSString *) | audioBufferJson |
Deserializes an instance from JSON.
| audioBufferJson | The audio buffer JSON. |
| - (double) gain |
Gets the gain.
| - (bool) generatedByPlc |
Gets a value indicating whether this buffer contains data generated by packet loss concealment (PLC).
| + (int) getMinimumBufferLengthWithDuration: | (int) | duration | |
| clockRate: | (int) | clockRate | |
| channelCount: | (int) | channelCount | |
Gets the minimum data buffer length for a given duration, clock rate, and channel count.
| duration | The duration. |
| clockRate | The clock rate. |
| channelCount | The channel count. |
| + (int) getMinimumBufferLengthWithDuration: | (int) | duration | |
| config: | (FMLiveSwitchAudioConfig *) | config | |
Gets the minimum data buffer length for a given duration and configuration.
| duration | The duration. |
| config | The configuration. |
| - (instancetype) init |
Initializes a new instance of the FMLiveSwitchAudioBuffer class.
Implements FMLiveSwitchMediaBuffer.
| - (instancetype) initWithDataBuffer: | (FMLiveSwitchDataBuffer *) | dataBuffer | |
| format: | (FMLiveSwitchAudioFormat *) | format | |
Initializes a new instance of the FMLiveSwitchAudioBuffer class.
| dataBuffer | The data buffer. |
| format | The format. |
| - (instancetype) initWithDataBuffers: | (NSMutableArray *) | dataBuffers | |
| format: | (FMLiveSwitchAudioFormat *) | format | |
Initializes a new instance of the FMLiveSwitchAudioBuffer class.
| dataBuffers | The data buffers. |
| format | The format. |
| - (bool) isDtmf |
Gets a value indicating whether this buffer has DTMF data.
| - (bool) isL16 |
Gets a value indicating whether this buffer has L16 audio.
| - (bool) isMuted |
Gets a value indicating whether this instance has been muted.
Implements FMLiveSwitchMediaBuffer.
| - (bool) isOpus |
Gets a value indicating whether this buffer has Opus audio.
| - (bool) isPcm |
Gets a value indicating whether this buffer has raw PCM audio.
| - (bool) isPcma |
Gets a value indicating whether this buffer has PCMA audio.
| - (bool) isPcmu |
Gets a value indicating whether this buffer has PCMU audio.
| - (bool) mute |
Mutes this instance.
This is a one-way operation that clears the underlying data buffer.
Implements FMLiveSwitchMediaBuffer.
| - (void) setGeneratedByPlc: | (bool) | value |
Sets a value indicating whether this buffer contains data generated by packet loss concealment (PLC).
| - (NSString*) toJson |
Serializes this instance to JSON.
| + (NSString*) toJsonArrayWithAudioBuffers: | (NSMutableArray *) | audioBuffers |
Serializes an array of instances to JSON.
| audioBuffers | The audio buffers. |
| + (NSString*) toJsonWithAudioBuffer: | (FMLiveSwitchAudioBuffer *) | audioBuffer |
Serializes an instance to JSON.
| audioBuffer | The audio buffer. |