You are not logged in.

#1 2013-05-05 22:37:47

dabbi2000
Member
From: Reykjavik, Iceland
Registered: 2011-09-28
Posts: 119
Website

[SOLVED] Alsa - how to play audio to particular speaker?

Bear with me please, I've done my reading, Googlin and trial and errors...

I have a 7.1 audio system but with 5.1 speaker configuration.

I understand how to use ALSA to route channels but before doing that I want to know the how the default Alsa configuration is playing audio to each speaker. But I cannot find a way to play to a particular speaker, aplay -c option only seems to specify how many channels to use, not wich speaker to play to? I know of speaker-test but that's not what I'm looking for.

Last edited by dabbi2000 (2013-05-06 13:28:52)

Offline

#2 2013-05-05 22:51:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,501
Website

Re: [SOLVED] Alsa - how to play audio to particular speaker?

See one of my asoundrc files here which I based off of one in Breb's signature.

Mine defines 8 different pcm outputs for each of the 7.1 outputs.  This allows me to send output to a specific speaker with commands such as "aplay -D OutX <audiofile>" where X is a number 1-8.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-05-06 13:28:34

dabbi2000
Member
From: Reykjavik, Iceland
Registered: 2011-09-28
Posts: 119
Website

Re: [SOLVED] Alsa - how to play audio to particular speaker?

Long way for what I'd thought was an easy command line task, but it works, thanks!

Offline

Board footer

Powered by FluxBB