Skip to content

Mojo audio channel

mojo:mojo.audio.Channel

Class Channel Extends std.resource.Resource#
Constructors
New Creates a new audio channel.
Properties
Flags (read only)
Pan Channel pan in the range -1 (left) to 1 (right).
Paused True if channel is paused.
Pitch Channel playback rate.
Playhead Channel playhead in samples.
PlayheadSample Channel playhead sample offset.
PlayheadTime Channel playhead time offset.
Playing True if channel is playing audio. (read only)
Rate Channel playback rate.
Stereo True if channel is playing a stereo audio file.
Volume Channel volume in the range 0 to 1.
Methods
Play Plays a sound through the channel.
Queue - Highly experimental!!!!!
Stop Stops channel.
WaitQueued - Highly experimental!!!!!
Protected methods
OnDiscard
OnFinalize