Discussion:
sndio: way to play and record from different devices?
Ax0n
2021-04-19 14:40:37 UTC
Permalink
I have a nice microphone attached to a USB sound device, but I'd like to
rely on my computer's built-in line out for speakers from the same program
(e.g. Audacity, Firefox). It feels like sndio might have some way to let
programs use snd/0.play and snd/1.rec, or a way to make snd/1 the default
device for record and snd/0 the default for play, or maybe even a virtual
sound device, but I haven't been able to sort out how to make it work.

Ideas?
Stuart Henderson
2021-04-19 14:49:56 UTC
Permalink
Post by Ax0n
I have a nice microphone attached to a USB sound device, but I'd like to
rely on my computer's built-in line out for speakers from the same program
(e.g. Audacity, Firefox). It feels like sndio might have some way to let
programs use snd/0.play and snd/1.rec, or a way to make snd/1 the default
device for record and snd/0 the default for play, or maybe even a virtual
sound device, but I haven't been able to sort out how to make it work.
Ideas?
see sndio(7) :-

ENVIRONMENT
AUDIODEVICE Audio device descriptor to use when no descriptor is
explicitly specified to a program.
AUDIOPLAYDEVICE Audio device descriptor to use for play-only mode when no
descriptor is explicitly specified to a program. Overrides
AUDIODEVICE.
AUDIORECDEVICE Audio device descriptor to use for record-only mode when no
descriptor is explicitly specified to a program. Overrides
AUDIODEVICE.
Alexandre Ratchov
2021-04-19 14:55:12 UTC
Permalink
Post by Ax0n
I have a nice microphone attached to a USB sound device, but I'd like to
rely on my computer's built-in line out for speakers from the same program
(e.g. Audacity, Firefox). It feels like sndio might have some way to let
programs use snd/0.play and snd/1.rec, or a way to make snd/1 the default
device for record and snd/0 the default for play, or maybe even a virtual
sound device, but I haven't been able to sort out how to make it work.
There's no way (yet) to combine a play-only and a rec-only device into
a single full-duplex one.

Certain programs don't need full-duplex capability and can use two
independent devices; firefox and audacity are not part of them
unfortunately. Sorry.

Loading...