[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Multichannel audio playback



On Wed, Apr 28, 2021 at 11:48:33AM +0000, Rodolfo Medina wrote:
> didier gaumet <didier.gaumet@gmail.com> writes:
> 
> > Le 28/04/2021 à 09:37, Rodolfo Medina a écrit :
> > [...]
> >> First of all, problem 1): same error now with a 2-channel and a 3-channel
> >> file:
> > [...]
> >> ERROR:  Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-ALSA:
> >> ... Channel count 2 is out of range!"
> > [...]
> >
> > http://nosignal.fi/ecasound/Documentation/examples.html#multichannel
> >
> > I do not use ecasound but it seems to me that this indicates that by default
> > ecasound is in a one channel (mono, channel #1) mode and that channels have
> > to be specified with -a, perhaps like this:
> >
> > $ ecasound -a:1,2,3 -i:sndfile,3canali.wav -o alsahw,2,0
> >  or perhaps
> > $ ecasound -a:all -i:sndfile,3canali.wav -o alsahw,2,0
> 
> 
> Thanks, Didier:
> 
> it seems to work with 2 channels:
> 
> $ ecasound -a:1,2 -i:sndfile,2canali.wav -o alsahw,2,0
> **************************************************************************
> *        ecasound v2.9.1 (C) 1997-2014 Kai Vehmanen and others    
> **************************************************************************
> (eca-chainsetup) Chainsetup "untitled-chainsetup"
> (eca-chainsetup) NOTE: Real-time configuration, but insufficient privileges
> ... to utilize real-time scheduling (SCHED_FIFO). With small buffersizes,
> ... this may cause audible glitches during processing.
> (eca-chainsetup) "rt" buffering mode selected.
> (audioio_sndfile) Using libsndfile to open file "2canali.wav" for reading.
> (eca-chainsetup) NOTE: using existing audio parameters -f:s16_le,2,48000
> ... for object 'sndfile' (tried to open with -f:s16_le,2,44100).
> (eca-chainsetup) Opened input "sndfile", mode "read". Format: s16_le,
> ... channels 2, srate 48000, interleaved (locked params).
> (eca-chainsetup) Opened output "alsahw", mode "write". Format: s16_le,
> ... channels 2, srate 48000, interleaved.
> - [ Connected chainsetup: "untitled-chainsetup" ] ------------------------
> - [ Controller/Starting batch processing ] -------------------------------
> - [ Engine - Driver start ] ----------------------------------------------
> 
> - [ Engine - Processing finished ] ---------------------------------------
> - [ Controller/Batch processing finished (0) ] ---------------------------
> - [ Controller/Processing stopped (cond) ] -------------------------------
> - [ Engine exiting ] -----------------------------------------------------
> (eca-control-objects) Disconnecting chainsetup:  "untitled-chainsetup".
> 
> 
> but not with 3:
> 
> $ ecasound -a:1,2,3 -i:sndfile,3canali.wav -o alsahw,2,0
> **************************************************************************
> *        ecasound v2.9.1 (C) 1997-2014 Kai Vehmanen and others    
> **************************************************************************
> (eca-chainsetup) Chainsetup "untitled-chainsetup"
> (eca-chainsetup) NOTE: Real-time configuration, but insufficient privileges
> ... to utilize real-time scheduling (SCHED_FIFO). With small buffersizes,
> ... this may cause audible glitches during processing.
> (eca-chainsetup) "rt" buffering mode selected.
> (audioio_sndfile) Using libsndfile to open file "3canali.wav" for reading.
> (eca-chainsetup) NOTE: using existing audio parameters -f:s16_le,3,48000
> ... for object 'sndfile' (tried to open with -f:s16_le,2,44100).
> (eca-chainsetup) Opened input "sndfile", mode "read". Format: s16_le,
> ... channels 3, srate 48000, interleaved (locked params).
> ERROR:  Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-ALSA:
> ... Channel count 2 is out of range!"
> 

Hi Rodolfo,

I don't think there is a problem with ecasound. 
For comparison, you can try

aplay -D <devicename> test.wav

You get the device name from aplay -L.
Please also show the output from 

cat /proc/asound/cards

With your ecasound examples, the -a argument is not necessary, and
selecting channels is not its purpose. 

cheers

> Please help...
> 
> Rodolfo
> 

-- 
Joel Roth


Reply to: