Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVAudioPCMBufferMBS class.

AVAudioPCMBufferMBS.Constructor(format as AVAudioFormatMBS, frameCapacity as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes a newly allocated PCM audio buffer instance for PCM audio data.

format: The format of the PCM audio to be contained in the buffer.
frameCapacity: The capacity of the buffer in PCM sample frames.

AVAudioPCMBufferMBS.floatChannelDataCopy(ChannelIndex as Integer) as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Copies buffer's audio samples as floating point values.

Returns memoryblock with samples only for the given channel.
Handles stride automatically for you.

Some examples using this method:

AVAudioPCMBufferMBS.int16ChannelDataCopy(ChannelIndex as Integer) as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Copies buffer's audio samples as 16-bit integer point values.

Returns memoryblock with samples only for the given channel.
Handles stride automatically for you.

Some examples using this method:

AVAudioPCMBufferMBS.int32ChannelDataCopy(ChannelIndex as Integer) as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Copies buffer's audio samples as 32-bit integer point values.

Returns memoryblock with samples only for the given channel.
Handles stride automatically for you.

AVAudioPCMBufferMBS.level(ChannelIndex as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Calculates level for a channel.

Value returned is between around 0.0 (nothing) to 1.0 (maximum).
Negative values are for errors.

AVAudioPCMBufferMBS.setFloatChannelData(ChannelIndex as Integer, Data as Memoryblock) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Writes channel to the buffer.

Please set frameLength to a matching value.
Data.size should be frameLength * 4.

Returns true on success or false on failure.
Handles stride automatically for you.

AVAudioPCMBufferMBS.setInt16ChannelData(ChannelIndex as Integer, Data as Memoryblock) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Writes channel to the buffer.

Please set frameLength to a matching value.
Data.size should be frameLength * 2.

Returns true on success or false on failure.
Handles stride automatically for you.

AVAudioPCMBufferMBS.setInt32ChannelData(ChannelIndex as Integer, Data as Memoryblock) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 20.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Writes channel to the buffer.

Please set frameLength to a matching value.
Data.size should be frameLength * 4.

Returns true on success or false on failure.
Handles stride automatically for you.

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...