From: Rodolfo Medina <rodolfo.medina@gmail.com>
To: Jeremy Nicoll - ml sox users <jn.ml.sxu.88@wingsandbeaks.org.uk>
Cc: sox-users@lists.sourceforge.net
Subject: Re: Playing multichannel audio files
Date: Tue, 06 Mar 2018 15:22:14 +0100 [thread overview]
Message-ID: <87efkxp9m1.fsf@gmail.com> (raw)
In-Reply-To: <87r2oxpboh.fsf@gmail.com> (Rodolfo Medina's message of "Tue, 06 Mar 2018 14:37:34 +0100")
Rodolfo Medina <rodolfo.medina@gmail.com> writes:
> Jeremy Nicoll - ml sox users <jn.ml.sxu.88@wingsandbeaks.org.uk> writes:
>
>> On 2018-03-06 09:08, Rodolfo Medina wrote:
>>> Hi all sox users.
>>>
>>> I have a multichannel audio file: suppose three channels. What I want is
>>> to listen to that file by listening to each of those channels through a
>>> different loud speaker. In order to do so, I imagine
>
> ...though I may be wrong...
>
>
>>> each channel being sent to a different sound card. Can sox perform that,
>>> and how? In sox manual I couldn't find an answer.
>>
>> What sound hardware does your computer have? Do you actually have more than
>> one soundcard?
>>
>> Since you posted on Debian-Users, is there a way in Debian to list what these
>> separate sound devices' names are?
>
> Two different soundcards, and three devices, seem to be detected:
>
> $ arecord -l
> **** List of CAPTURE Hardware Devices ****
> card 1: Generic [HD-Audio Generic], device 0: ALC662 rev3 Analog [ALC662 rev3
> Analog]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 1: Generic [HD-Audio Generic], device 2: ALC662 rev3 Alt Analog [ALC662
> rev3 Alt Analog]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]
> Subdevices: 0/1
> Subdevice #0: subdevice #0
>
>
>> Do you have a way (forgetting your audio file for a moment) of getting sound
>> out to three separate places?
>
> If I could have sox (or any other software) send different channel outputs to
> different soundcards, I could think of plugging a loud speaker into each
> soundcard and so getting sound out to three separate places...
>
>
>> Do you have any other sound-playing software?
>
> I normally use mplayer to play sound.
Since sox can split a three-channel file into three one-channel files, the
problem is virtually solved once we manage to send two audio outputs into two
different audio cards. This seems to be done simply with `&&', e.g:
$ mplayer -ao alsa:device=hw=2.0 file1.wav && mplayer file2.wav
, but unfortunately only one output is heard at a time...
Rodolfo
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
next prev parent reply other threads:[~2018-03-06 14:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-06 9:08 Playing multichannel audio files Rodolfo Medina
2018-03-06 12:56 ` Jeremy Nicoll - ml sox users
2018-03-06 13:37 ` Rodolfo Medina
2018-03-06 14:22 ` Rodolfo Medina [this message]
2018-03-06 14:26 ` Måns Rullgård
2018-03-07 15:14 ` Jan Stary
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.sourceforge.net/lists/listinfo/sox-users
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87efkxp9m1.fsf@gmail.com \
--to=sox-users@lists.sourceforge.net \
--cc=jn.ml.sxu.88@wingsandbeaks.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/sox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).