Исправление индикации

This commit is contained in:
Maxim
2026-06-22 11:54:14 +03:00
parent 827210d29a
commit eab9e17212
2 changed files with 14 additions and 19 deletions

View File

@@ -64,7 +64,6 @@ export class AudioEngine {
currentTime + this.FADE_TIME
);
this.currentFrequency = frequency;
console.log(`[Audio] Частота: ${frequency} Гц`);
} catch (error) {
// Если не удалось плавно, устанавливаем сразу
this.oscillator.frequency.value = frequency;
@@ -101,7 +100,6 @@ export class AudioEngine {
this.oscillator.start();
this.isPlaying = true;
console.log(`[Audio] Звук создан, частота: ${frequency} Гц, уровень: ${level}`);
}
/**
@@ -138,7 +136,6 @@ export class AudioEngine {
return;
}
const oldLevel = this.currentLevel;
this.currentLevel = newLevel;
// Получаем частоту для нового уровня
@@ -172,8 +169,6 @@ export class AudioEngine {
// Обновляем громкость
this.setVolume(newLevel);
console.log(`[Audio] Уровень: ${oldLevel}${newLevel}, Частота: ${newFrequency} Гц`);
}
/**
@@ -235,8 +230,6 @@ export class AudioEngine {
this.stopSound();
this.fadeTimeout = null;
}, this.FADE_TIME * 2 * 1000 + 50);
console.log('[Audio] Затухание...');
}
/**
@@ -268,8 +261,6 @@ export class AudioEngine {
clearTimeout(this.fadeTimeout);
this.fadeTimeout = null;
}
console.log('[Audio] Звук остановлен');
}
// ============================================