Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

AVAudioChannelLayoutMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class AVFoundationNode MBS AVFoundation Plugin 15.3 Yes No No Yes, macOS only No
Function: The AVAudioChannelLayout class describes the roles of a set of audio channels.
Function StereoLeftFormat() As AVAudioFormatMBS
// stereo format, left channel only

dim qlayout as new QTAudioChannelLayoutMBS

dim d1 as new QTAudioChannelDescriptionMBS
dim d2 as new QTAudioChannelDescriptionMBS

d1.ChannelFlags = QTAudioChannelDescriptionMBS.kAudioChannelFlags_AllOff
d1.ChannelLabel = QTAudioChannelDescriptionMBS.kAudioChannelLabel_Discrete_3

d2.ChannelFlags = QTAudioChannelDescriptionMBS.kAudioChannelFlags_AllOff
d2.ChannelLabel = QTAudioChannelDescriptionMBS.kAudioChannelLabel_Unused

qlayout.ChannelLayoutTag = QTAudioChannelLayoutMBS.kAudioChannelLayoutTag_UseChannelDescriptions


dim layout as new AVAudioChannelLayoutMBS(qlayout)
dim pf as new AVAudioFormatMBS(44100, layout)

Return pf
End Function
Notes: This object is a thin wrapper for the AudioChannelLayout structure.

Feedback, Comments & Corrections

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some examples which use this class:

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

AVAudioBufferMBS   -   AVAudioComponentDescriptionMBS

MBS Xojo Plugins