Update Aura
This commit is contained in:
@ -43,7 +43,7 @@ abstract class Panner extends DSP {
|
||||
public function new(handle: BaseChannelHandle) {
|
||||
this.inUse = true; // Don't allow using panners with addInsert()
|
||||
this.handle = handle;
|
||||
this.handle.channel.panner = this;
|
||||
handle.channel.panner = this;
|
||||
}
|
||||
|
||||
public inline function setHandle(handle: BaseChannelHandle) {
|
||||
@ -52,7 +52,7 @@ abstract class Panner extends DSP {
|
||||
}
|
||||
reset3D();
|
||||
this.handle = handle;
|
||||
this.handle.channel.panner = this;
|
||||
handle.channel.panner = this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -61,10 +61,13 @@ class StereoPanner extends Panner {
|
||||
|
||||
public inline function setBalance(balance: Balance) {
|
||||
this._balance = balance;
|
||||
|
||||
final volumeLeft = Math.sqrt(~balance);
|
||||
final volumeRight = Math.sqrt(balance);
|
||||
|
||||
sendMessage({ id: StereoPannerMessageID.PVolumeLeft, data: volumeLeft });
|
||||
sendMessage({ id: StereoPannerMessageID.PVolumeRight, data: volumeRight });
|
||||
|
||||
#if (kha_html5 || kha_debug_html5)
|
||||
handle.channel.sendMessage({ id: ChannelMessageID.PVolumeLeft, data: volumeLeft });
|
||||
handle.channel.sendMessage({ id: ChannelMessageID.PVolumeRight, data: volumeRight });
|
||||
|
||||
Reference in New Issue
Block a user