Golang getting ‘playing audio’ system status – preferably cross platform

Golang getting ‘playing audio’ system status – preferably cross platform

Does anyone know of a package to do this – I’ve tried searching – but it’s really hard to find a useful search.

Here is my use case – I want to be able to detect (at system level) when audio is playing (through another application/browser, etc.) so that I can pause audio to make an announcement, then start it again after the announcement.

Note that I’m using the system keyboard media control to send ‘audio_play’ to pause/resume – but if NO audio is playing, this will start the audio and play over the announcement, then pause it again afterwards…

Preferably cross platform – but windows only is better than nothing…

Thank you – Andy

1 post – 1 participant

Read full topic

HI-FI News

via Go Forum – Latest topics https://ift.tt/suCKW1c

November 21, 2025 at 03:06PM