Platforms to show: All Mac Windows Linux Cross-Platform
Back to AVAudioUnitMBS class.
AVAudioUnitMBS.AddPropertyListener(ID as UInt32)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
When an audio unit property value changes, a PropertyListener event can be called by the audio unit to inform interested parties that this event has occurred.
You must call RemovePropertyListener when you are done with the audio unit.
Lasterror is set.
AVAudioUnitMBS.Constructor Private
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
AVAudioUnitMBS.Constructor(audioComponentDescription as AVAudioComponentDescriptionMBS) Private
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
audioComponentDescription: The description of the audio unit to be initialized.
See also:
AVAudioUnitMBS.CreateView(PreferredSize as NSSizeMBS) as NSViewMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 18.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns nil in case of error.
PreferredSize is the preferred size of the control.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
AVAudioUnitMBS.GetParameter(ID as UInt32, Scope as UInt32, Element as UInt32) as Single
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Lasterror is set.
If no error occurs, the result is the parameter value.
Please check Apples documentation for possible parameters.
AVAudioUnitMBS.GetProperty(ID as UInt32, Scope as UInt32, Element as UInt32) as Memoryblock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The plugin queries the data size, creates a memoryblock, queries the value and returns it.
Lasterror is set.
AVAudioUnitMBS.GetPropertyInfo(ID as UInt32, Scope as UInt32, Element as UInt32, byref WriteAble as Boolean) as UInt32
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The API can be used to retrieve both the size of the property, and whether it is writable or not. In order to get a general answer on the capability of an audio unit, this function should be called before the audio unit is initialized (as some properties are writable when the audio unit is initialized, and others not)
Lasterror is set.
AVAudioUnitMBS.installLevelMonitor(CallsPerSecond as Integer, tag as Variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CallsPerSecond can be between 5 and 50. Tag is stored and passed to the event.
AVAudioUnitMBS.RemovePropertyListener(ID as UInt32)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
AVAudioUnitMBS.SetParameter(ID as UInt32, Scope as UInt32, Element as UInt32, Value as Single, inBufferOffsetInFrames as UInt32 = 0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Parameter IDs are consistent across all of the elements in a scope - so for a mixer, the "input volume" parameter can be applied on any input, and the particular input is specified by the elementID.
Lasterror is set.
Please check Apples documentation for possible parameters.
AVAudioUnitMBS.SetProperty(ID as UInt32, Scope as UInt32, Element as UInt32, data as Memoryblock)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Some properties can be cleared by passing data = nil.
Lasterror is set.
The items on this page are in the following plugins: MBS AVFoundation Plugin.