Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

AUPlayerMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Audio MBS MacOSX Plugin 14.2 Yes No No Yes, macOS only No
Function: The audio unit player.
This is a better Core Audio based player which has a lot of features like pitch, rate, volume, equalizer and other features.
Beside playing audio you can also use this class to get sample data from audio files.

Currently only stereo is supported (2 channels maximum).

Feedback, Comments & Corrections

Output Units

Constant Value Description
OutputUnitDefault 0 Plugin default, currently HALOutput.
OutputUnitDefaultOutput 3 A specialisation of AUHAL that is used to track the user's selection of the default device as set in the Sound Prefs
OutputUnitGenericOutput 1 A generic output unit provides the start/stop API, and provides the basic services to convert Linear PCM formats.
OutputUnitHALOutput 2 The audio unit that interfaces to any audio device. The user specifies which audio device to track. The audio unit can do input from the device as well as output to the device. Bus 0 is used for the output side, bus 1 is used to get audio input from the device.
OutputUnitSystemOutput 4 A specialisation of AUHAL that is used to track the user's selection of the device to use for sound effects, alerts and other UI sounds.

Time Pitch Units

Constant Value Description
TimePitchUnitDefault 0 Default, plugin chooses one. (normal TimePitch)
TimePitchUnitTimePitch 1 An audio unit that can be used to have independent control of both playback rate and pitch.
TimePitchUnitVarispeed 2 An audio unit that can be used to control playback rate (as the rate is faster, the pitch is higher).

This class has no sub classes.

Some examples which use this class:

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

AudioPlayThruMBS   -   AuthorizationItemMBS

MBS Xojo Chart Plugins