Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVAudioChannelLayoutMBS class.

AVAudioChannelLayoutMBS.Constructor(Layout as QTAudioChannelLayoutMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Initialize an audio channel layout object using an existing one.
Example
Function StereoFormat() As AVAudioFormatMBS
// stereo format with standard layout tag
dim qlayout as new QTAudioChannelLayoutMBS

qlayout.ChannelLayoutTag = QTAudioChannelLayoutMBS.kAudioChannelLayoutTag_Stereo

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

Return pf
End Function

If the provided audio channel layout object’s tag is kAudioChannelLayoutTag_UseChannelDescriptions, this initializer attempts to convert it to a more specific tag.

See also:

AVAudioChannelLayoutMBS.Constructor(LayoutTag as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Initialize an audio channel layout object using a layout tag.
Example
Function StereoFormat() As AVAudioFormatMBS
// stereo format with standard layout tag

dim layout as new AVAudioChannelLayoutMBS(QTAudioChannelLayoutMBS.kAudioChannelLayoutTag_Stereo)
dim pf as new AVAudioFormatMBS(44100, layout)

Return pf
End Function

See QTAudioChannelLayoutMBS class for constants.

See also:

AVAudioChannelLayoutMBS.isEqual(other as AVAudioChannelLayoutMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Determines whether another audio channel layout is exactly equal to this layout.

other: The AVAudioChannelLayout object to compare against.

Returns true if they are equal; otherwise false.

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


The biggest plugin in space...