Skip to content

Commit

Permalink
shift where unmute happens
Browse files Browse the repository at this point in the history
  • Loading branch information
goldbuick committed Jan 1, 2025
1 parent f0e3867 commit e901ce5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cafe/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ 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'
import { Terminal } from 'zss/gadget/terminal'
import { ispresent } from 'zss/mapping/types'
import 'zss/platform'

unmuteaudio()

extend({
BufferGeometry,
Group,
Expand Down
2 changes: 2 additions & 0 deletions zss/device/synth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -47,6 +48,7 @@ export function enableaudio() {
start()
.then(() => {
if (!enabled) {
unmuteaudio()
const transport = getTransport()
transport.bpm.value = 107
transport.start()
Expand Down

0 comments on commit e901ce5

Please sign in to comment.