[alsa-devel] Record stereo from one input on the soundcard
Ricard Wanderlof
ricard.wanderlof at axis.com
Mon Jan 28 08:52:29 CET 2019
On Sun, 27 Jan 2019, Tomas Nordin wrote:
> Ok, thanks. I have been a bit confused about the relation between the -c
> option argument and the number of inputs on a card. If I understand
> correctly, the -c option does not say anything about what inputs to
> record from, it is saying what kind of audiofile to produce?
-c 2 means "take two channels from the card and produce two channels of
output". It does not at all address how those two channels are formed in
the card. Usually sound cards have an internal mixer, so that input 1
could be feeding channels 1 and 2 for instance. However, in my (limited)
experience, the audio routed to USB is often more or less directly mapped
to the physical inputs, with any internal mixer in the sound card
providing monitoring functionality (the headphone output primarily).
Looking quickly at a picture of the sound card, it looks as if the two
inputs are mono inputs, balanced when XLR connectors are used, potentially
unbalanced when 1/4" connectors are used.
I would think that inputs 1 and 2 are sent as the left and right channels
over USB, and that's what you get when you use arecord -c 2.
Connecting the headphone output of your drum module to input 1 will thus
result in a mono recording on channel 1.
My guess is that the internal mixer of the sound card is set up to
distribute both input channels to both left and right headphone outputs,
thus you can hear sound in both the left and right channels of the
headphone output, even when using only one of the inputs.
Most soundcards have a Windows and/or Mac application which can control
the internal mixer; sadly, most often they use a proprietary interface and
thus do not show up as ALSA controls. Sometimes the mixer application can
be run under Wine; more often in a virtual Windows environment such as
VirtualBox.
If you do want to record both channels, you would need to have a cable
that has a stereo connector on one end, for connecting to your drum
module, and two mono 1/4" connectors at the other end, providing inputs 1
and 2 with the left and right channels.
What is the drum module? Does it not have ordinary outputs as well as the
headphone output?
/Ricard
--
Ricard Wolf Wanderlof ricardw(at)axis.com
Axis Communications AB, Lund, Sweden www.axis.com
Phone +46 46 272 2016 Fax +46 46 13 61 30
More information about the Alsa-devel
mailing list