[LAU] Multi-channel (3 or more) audio playback with alsaplayer

Fernando Lopez-Lezcano nando at ccrma.Stanford.EDU
Wed Dec 15 19:54:00 CET 2021


On 12/14/21 2:43 AM, Kamil Adiloglu wrote:
> Dear group,
> 
> I would like to use alsaplayer via jack to play 3-channel audio files. 
> These audio files will be routed into a real-time capable signal 
> processing platform the open master hearing aid (openMHA). 

An option not mentioned yet in the thread is ecasound, I routinely use 
it as a command line multi-channel player - it is a very good jack 
client. Ecasound can do a LOT more than just playing back soundfiles.

-- Fernando


> However, I 
> cannot route the third channel to jack. I try to start alsaplayer as a 
> daemon with the following command
> 
> alsaplayer -i daemon -s PHL -o jack -d MHA:in_1,MHA:in_2,MHA:in_3 -F 16000
> 
> However alsaplayer returns and error saying
> 
> cannot connect output port 2 (MHA:in_2,MHA:in_3)
> 
> Actually MHA:in_2 should be the output port 2 and MHA:in_3 is ment to be 
> the output port 3.
> 
> I first start the openMHA software so that it establishes 4 input and 4 
> output connections via jack with the sound hardware. I can see the 
> connections on qjackctl connections window.
> 
> I have a sound card that has 8 input and output channels and the openMHA 
> is configured to expect 4 input channels and produces 2 output channels 
> and already mentioned. So, the problem is neither on the MHA side nor on 
> the hardware. I am afraid that I cannot configure the alsaplayer 
> correctly that it expects three (or more) output ports. I would 
> appreciate any help from your side. Thank you in advance.
> 
> 
> Best regards,
> 
> Kamil
> 
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user at lists.linuxaudio.org
> https://lists.linuxaudio.org/listinfo/linux-audio-user
> 


More information about the Linux-audio-user mailing list