Fix Ctrl+V paste and split user/item landing tones
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user