Windows 11 has the ability to map apps to devices
(although I’m struggling to find the option to toggle device-mixer that I thought I had, maybe on win 10, with a volume slider per app, and a dropdown to switch device, in a classic control panel, IIRC)
With SonicPi, due to SuperCollider, an application restart is required after a hardware change, like plugging in headphones.
If you do this:
- open sonicpi, play a sample (on speakers, no headphones in)
- plug in headphones, go to sounds, make noises using headphones (in other windows apps, or volume-slider at least)
- go back to sonic-pi, and the sounds are still playing.
This is a bit of a revelation as years ago on windows 7 I’d tried to do this, but thought “it’s just one audiobus”.
I’ve tried to make the :sound_out
work, but I think the audio_settings need to be configured.
Looking at the sound device properties they have friendly names like “Speakers” and “Headphones”
and both have the same controller info
Can I target Speakers / Headphones using :sound_out
?
Conversely, the “other” audio device in my laptop (device manager) is the Intel Display Audio.
audio-settings.toml
Previously I tried to do the same switching / setting output to my bluetooth headphones, but that didn’t work
Currently I have these settings (Just increased num_outputs to 4, but now no sound out):
sound_card_name = "Conexant ISST Audio"
sound_card_sample_rate = 48000
sound_card_buffer_size = 64
# num_inputs = 16
num_outputs = 4
The Hardware ID’s listed from devmgmt are
INTELAUDIO\FUNC_01&VEN_14F1&DEV_50F4&SUBSYS_103C80FD&REV_1001
INTELAUDIO\FUNC_01&VEN_14F1&DEV_50F4&SUBSYS_103C80FD
Compatible ID’s
INTELAUDIO\FUNC_01&VEN_14F1&DEV_50F4&REV_1001
INTELAUDIO\FUNC_01&VEN_14F1&DEV_50F4
INTELAUDIO\FUNC_01&VEN_14F1
INTELAUDIO\FUNC_01
Hopefully a) this is achievable and b) that’s enough info!