Variables

@:value(true)allowVirtual:Bool = true

read onlyduration:Float

@:value(false)loop:Bool = false

@:value(false)pause:Bool = false

@:value(0.0)position:Float = 0.0

read onlysound:Sound

Methods

calcAudibleVolume(now:Float):Void

isReleased():Bool

dynamiconEnd():Void

onEnd() is called when a sound which does not loop has finished playing or when we switch buffer in a queue or when a sound which is streamed loops.

queueSound(sound:Sound):Void

Add a sound to the queue. When the current sound is finished playing, the next one will seamlessly continue. This will also trigger an onEnd() event.

stop():Void

Inherited Variables

Defined by ChannelBase

@:value([])bindedEffects:Array<Effect> = []

@:value([])effects:Array<Effect> = []

@:value(false)mute:Bool = false

@:value(0.)priority:Float = 0.

@:value(1.)volume:Float = 1.

Inherited Methods

Defined by ChannelBase

@:access(hxd.snd.Manager)addEffect<T>(e:T):T

@:value({ time : 1. })fadeTo(volume:Float, time:Float = 1., ?onEnd:() ‑> Void):Void

getEffect<T>(etype:Class<T>):T

@:access(hxd.snd.Manager)removeEffect(e:Effect):Void