Update Aura

This commit is contained in:
2026-06-23 14:54:15 -07:00
parent db2482dbe2
commit 78ea055aea
18 changed files with 407 additions and 98 deletions

View File

@ -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;
}
/**

View File

@ -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 });