Skip to content

Commit

Permalink
fix(audio): trying to remove suspended audio context issue
Browse files Browse the repository at this point in the history
  • Loading branch information
liana-p committed Jun 15, 2023
1 parent f58d53b commit 525374c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/narrat/src/stores/audio-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ export const useAudio = defineStore('audio', {
},
async playChannel(mode: AudioModeKey, audio: string, channelIndex: number) {
if (Howler.ctx.state === 'suspended') {
console.warn('Audio context not started yet, skipping audio');
return;
console.warn('Audio context is suspended :o');
// return;
}
const audioChannel = this.getAudioChannel(mode, channelIndex);
if (mode === 'sound') {
Expand Down

0 comments on commit 525374c

Please sign in to comment.