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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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.