Skip to content

Commit

Permalink
fix: errors in event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Jun 10, 2024
1 parent d9a3ac7 commit 20044eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/announcement-data/AnnouncementSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export default abstract class AnnouncementSystem {
return new Promise<void>(resolve => {
crunker.play(audio, source => {
console.log('[Crunker] About to play audio...')
crunker._context.onstatechange = () => console.log('state changed to: ', audioContext.state)
crunker._context.onstatechange = a => console.log('state changed:', a)
console.log('Context state: ', crunker._context.state)

if (crunker._context.state === 'suspended') {
Expand Down

0 comments on commit 20044eb

Please sign in to comment.