Fix Ctrl+V paste and split user/item landing tones

This commit is contained in:
Jage9
2026-02-21 03:47:43 -05:00
parent 932e96fb3b
commit 69585ff9d8
3 changed files with 25 additions and 4 deletions

View File

@@ -253,10 +253,14 @@ export class AudioEngine {
this.playSound({ freq: isDefault ? 659.25 : 440, duration: 0.1, type: 'sine', gain: 0.35 });
}
sfxTileOccupantPing(): void {
sfxTileItemPing(): void {
this.playSound({ freq: 1320, duration: 0.12, type: 'sine', gain: 0.45 });
}
sfxTileUserPing(): void {
this.playSound({ freq: 880, duration: 0.12, type: 'sine', gain: 0.45 });
}
async playSpatialSample(url: string, sourcePosition: { x: number; y: number }, gain = 1): Promise<void> {
await this.ensureContext();
const { audioCtx, sfxGainNode } = this;