mojo.audio.Channel - nitrologic/monkey2 GitHub Wiki

mojo::mojo.audio.Channel

Class Channel Extends std: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.
PlayheadSample Channel playhead sample offset.
PlayheadTime Channel playhead time offset.
Playing True if channel is playing audio. (read only)
Rate Channel playback rate.
Volume Channel volume in the range 0 to 1.
Methods
Play Plays a sound through the channel.
Stop Stops channel.