Platforms to show: All Mac Windows Linux Cross-Platform

Back to AUPlayerMBS class.

AUPlayerMBS.ChannelMap as Integer()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS MacOSX Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Queries current channel map.

The map should have an entry for each input channel and inside the number of the output channel or -1 to keep it silent.

AUPlayerMBS.Data as Memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS MacOSX Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Copies the data to play.

The other data properties define what format this data has.
Typically 4 byte floats per sample interleaved for all channels.

AUPlayerMBS.InputEnabled(inputNum as UInt32) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS MacOSX Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Enable or disable input.

Lasterror is set.
(Read and Write computed property)

Some examples using this property:

AUPlayerMBS.InputVolume(inputNum as UInt32) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Audio MBS MacOSX Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The input volume.

Lasterror is set.
(Read and Write computed property)

Some examples using this property:

AUPlayerMBS.LoadFile(file as folderitem, InputChannels as Integer = 2, OutputChannels as Integer = 2) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS MacOSX Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Loads an audio file.

InputChannels is the number of channels we want to get back from file reader.
OutputChannels is the number of channels we want to have for output.
Returns true on success or false on failure.

AUPlayerMBS.LoadFileMT(file as folderitem, InputChannels as Integer = 2, OutputChannels as Integer = 2) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS MacOSX Plugin 14.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Loads an audio file.

The work is performed on a preemptive thread, so this function does not block the application and can yield time to other Xojo threads. Must be called in a Xojo thread to enjoy benefits. If called in main thread will block, but keep other background threads running.

InputChannels is the number of channels we want to get back from file reader.
OutputChannels is the number of channels we want to have for output.
Returns true on success or false on failure.

AUPlayerMBS.Pause

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS MacOSX Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Pauses playback.

Lasterror is set.

AUPlayerMBS.Play

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS MacOSX Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Starts playback.

Lasterror is set.

AUPlayerMBS.Reset

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS MacOSX Plugin 14.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Resets audio units.

Useful after changing options.

AUPlayerMBS.setChannelMap(values() as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS MacOSX Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets a new channel map.

The map should have an entry for each input channel and inside the number of the output channel or -1 to keep it silent.

AUPlayerMBS.updateEQ(eqBands() as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS MacOSX Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Updates equalizer.

Please pass array of 32 values from -12 to 12.
Lasterror is set.

See also:

Some examples using this method:

AUPlayerMBS.updateEQ(eqBands() as single)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Audio MBS MacOSX Plugin 14.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Updates equalizer.

Please pass array of 32 values from -12 to 12.
Lasterror is set.

See also:

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


The biggest plugin in space...