Try to compile potamus a very simple player that can be modified to work as 
jack aware  multichannel player.
http://offog.org/code/potamus.html

> Can it play back multichannel wav files ?
In theory it should do, but it only creates two JACK output ports by default, 
so you'll need to change that in the source (NUM_PORTS in src/output-jack.c). 
I've not actually tried it beyond two channels, but it was written with 
multichannel playback loosely in mind, so it should work.
- It works! - Bosse

> It is also a very positive thing that potamus keeps the setup of jack between 
> files as I understand it does.
Yes -- it creates JACK output ports on startup, and connects them automatically 
to the physical input ports, but after that it doesn't touch them.

Adam Sampson the author have provided the above info to me :-)
Bo-Erik

-----Original Message-----
From: Sursound [mailto:sursound-boun...@music.vt.edu] On Behalf Of Fons 
Adriaensen
Sent: den 14 november 2013 13:24
To: sursound@music.vt.edu
Subject: Re: [Sursound] Linux ambdec b-format channel order

On Thu, Nov 14, 2013 at 12:00:10AM +0000, Andy Furniss wrote:

> I am not experienced with ambdec, but while trying something today I 
> noticed something confusing when feeding direct with mplayer -
> 
> mplayer -channels 4 -ao jack:port=ambdec pwh-VoiCE-Round.amb
> 
> The channels are crossed as in the screenshot. This doesn't happen if 
> I were to use the same mplayer command to a different sink.
> 
> I suppose it does match the order on the config screen, but not the 
> jack input names.
> 
> http://imageshack.com/a/img203/1880/1xzw.png

Mplayer's Jack support is broken, it doesn't allow you to specify the ports to 
connect to, only the application name. And Jack itself has no notion of any 
'order' of the ports, whatever order there is has to be inferred from the port 
names. Mplayer doesn't do this, and the result is more or less random 
connections.

In this case the sequence matches the one in the config window, probably 
because Ambdec creates its ports in that order, and when asked for Ambdec's 
ports, Jack happens to list them in the same order again. But that is not 
documented in Jack's API, so you can't rely on it.

The only solution is to fix Mplayer.

--
FA

A world of exhaustive, reliable metadata would be an utopia.
It's also a pipe-dream, founded on self-delusion, nerd hubris and hysterically 
inflated market opportunities. (Cory Doctorow)

_______________________________________________
Sursound mailing list
Sursound@music.vt.edu
https://mail.music.vt.edu/mailman/listinfo/sursound
_______________________________________________
Sursound mailing list
Sursound@music.vt.edu
https://mail.music.vt.edu/mailman/listinfo/sursound

Reply via email to