messageChannel(for:)
Returns an object for bidirectional communication between an audio unit and its host.
Declaration
func messageChannel(for channelName: String) -> any AUMessageChannelParameters
- channelName:
The name of the message channel the audio unit returns.
Return Value
An object that conforms to AUMessageChannel.
Discussion
Message channels provide a way for custom data exchanges between an audio unit and its host. An audio unit may support multiple message channels.
The host manages the message channel object’s lifetime. Design message channel objects so they can outlive the audio unit that vended them.