From e901ce57ab5d235d55562c27eded7c83f3e00a21 Mon Sep 17 00:00:00 2001 From: goldbuick Date: Wed, 1 Jan 2025 18:07:31 -0500 Subject: [PATCH] shift where unmute happens --- cafe/app.tsx | 3 --- zss/device/synth.ts | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cafe/app.tsx b/cafe/app.tsx index fa841865..a4f5d005 100644 --- a/cafe/app.tsx +++ b/cafe/app.tsx @@ -8,7 +8,6 @@ import { PlaneGeometry, Points, } from 'three' -import unmuteaudio from 'unmute-ios-audio' import { vm_loadfile } from 'zss/device/api' import { registerreadplayer } from 'zss/device/register' import { enableaudio } from 'zss/device/synth' @@ -16,8 +15,6 @@ import { Terminal } from 'zss/gadget/terminal' import { ispresent } from 'zss/mapping/types' import 'zss/platform' -unmuteaudio() - extend({ BufferGeometry, Group, diff --git a/zss/device/synth.ts b/zss/device/synth.ts index cd29ef76..e6447e58 100644 --- a/zss/device/synth.ts +++ b/zss/device/synth.ts @@ -21,6 +21,7 @@ import { getDestination, Player, } from 'tone' +import unmuteaudio from 'unmute-ios-audio' import { createdevice } from 'zss/device' import { ECHO_OFF, ECHO_ON } from 'zss/gadget/audio/fx' import { @@ -47,6 +48,7 @@ export function enableaudio() { start() .then(() => { if (!enabled) { + unmuteaudio() const transport = getTransport() transport.bpm.value = 107 transport.start()