v77: фикс playTrimmed — await getAudioCtx()

This commit is contained in:
“Naeel”
2026-05-22 21:39:18 +04:00
parent 89e875404b
commit 6d7b1fb63d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ function stopRecording() {
// ---------- Воспроизведение (с обрезкой тишины) ----------
async function playTrimmed(blob) {
const t = await trimSilence(blob);
const ctx = getAudioCtx();
const ctx = await getAudioCtx();
let buf;
if (t) {
const offline = new OfflineAudioContext(1, t.data.length, t.sr);