simondotm / beeb-vsc

Visual Studio Code Extension to support code development for BBC Micro
https://marketplace.visualstudio.com/items?itemName=simondotm.beeb-vsc
MIT License
13 stars 3 forks source link

feat(emulator): Mute audio when emulator paused or no longer visible #84

Closed simondotm closed 5 months ago

simondotm commented 5 months ago

Audio state - enabled && || mute are a bit tricky to state manage, but this PR sorts it. We now listen for panel visibility events and pause/resume the emulator accordingly. Pausing the emulator now mutes the audio, if it is enabled. Emulator requires user to restart it when visibility changes.