* Non-continous channel map?
@ 2006-04-27 5:52 Pierre Ossman
2006-05-03 12:06 ` Clemens Ladisch
2006-05-03 12:56 ` Takashi Iwai
0 siblings, 2 replies; 6+ messages in thread
From: Pierre Ossman @ 2006-04-27 5:52 UTC (permalink / raw)
To: alsa-devel
Hi!
ALSA uses a rather strict default channel map, just a simple list. This
is insufficient for the polypaudio plug-in I wrote, as the polypaudio
server might have an output of e.g. just the center channel and a
subwoofer. I'm wondering how to properly represent this in ALSA.
For the PCM, there is no problem as we as clients decide which channels
are to be set up. The server will then need to map these to actual hardware.
For mixer, however, we're modifying the server hardware so we will need
to adapt to whatever channels it has. So provided I have a device with
channels "left", "right", "center" and "subwoofer", should I:
a) Just expose "left" and "right" since "rear left" isn't present (the
next in ALSA's list).
b) Expose all channels until I can cover my four and simply filter out
the ones that aren't present on the server.
c) Ignore ALSA's list completely and leave it to the user to figure
out what the channel map is.
d) Something else?
Input appreciated.
--
Pierre Ossman Telephone: +46-13-21 46 00
Cendio AB Web: http://www.cendio.com
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Non-continous channel map?
2006-04-27 5:52 Non-continous channel map? Pierre Ossman
@ 2006-05-03 12:06 ` Clemens Ladisch
2006-05-03 12:43 ` Pierre Ossman
2006-05-03 12:56 ` Takashi Iwai
1 sibling, 1 reply; 6+ messages in thread
From: Clemens Ladisch @ 2006-05-03 12:06 UTC (permalink / raw)
To: Pierre Ossman; +Cc: alsa-devel
Pierre Ossman wrote:
> ALSA uses a rather strict default channel map, just a simple list.
Does it? AFAIK ALSA devices just have a specific number of channels and
leave the interpretation to the application.
The default channel order is just a convention.
HTH
Clemens
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Non-continous channel map?
2006-05-03 12:06 ` Clemens Ladisch
@ 2006-05-03 12:43 ` Pierre Ossman
2006-05-03 12:52 ` Takashi Iwai
0 siblings, 1 reply; 6+ messages in thread
From: Pierre Ossman @ 2006-05-03 12:43 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: alsa-devel
Clemens Ladisch wrote:
> Pierre Ossman wrote:
>> ALSA uses a rather strict default channel map, just a simple list.
>
> Does it? AFAIK ALSA devices just have a specific number of channels and
> leave the interpretation to the application.
>
> The default channel order is just a convention.
>
A convention that isn't followed is just as bad, if not worse, than no
convention at all.
So what you're saying is that any application that wants to output more
than one channel must have the user inform it of how channels are mapped?
--
Pierre Ossman Telephone: +46-13-21 46 00
Cendio AB Web: http://www.cendio.com
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Non-continous channel map?
2006-05-03 12:43 ` Pierre Ossman
@ 2006-05-03 12:52 ` Takashi Iwai
0 siblings, 0 replies; 6+ messages in thread
From: Takashi Iwai @ 2006-05-03 12:52 UTC (permalink / raw)
To: Pierre Ossman; +Cc: Clemens Ladisch, alsa-devel
At Wed, 03 May 2006 14:43:51 +0200,
Pierre Ossman wrote:
>
> Clemens Ladisch wrote:
> > Pierre Ossman wrote:
> >> ALSA uses a rather strict default channel map, just a simple list.
> >
> > Does it? AFAIK ALSA devices just have a specific number of channels and
> > leave the interpretation to the application.
> >
> > The default channel order is just a convention.
> >
>
> A convention that isn't followed is just as bad, if not worse, than no
> convention at all.
Most apps do follow the convention :)
Takashi
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Non-continous channel map?
2006-04-27 5:52 Non-continous channel map? Pierre Ossman
2006-05-03 12:06 ` Clemens Ladisch
@ 2006-05-03 12:56 ` Takashi Iwai
2006-05-03 14:00 ` Pierre Ossman
1 sibling, 1 reply; 6+ messages in thread
From: Takashi Iwai @ 2006-05-03 12:56 UTC (permalink / raw)
To: Pierre Ossman; +Cc: alsa-devel
At Thu, 27 Apr 2006 07:52:35 +0200,
Pierre Ossman wrote:
>
> Hi!
>
> ALSA uses a rather strict default channel map, just a simple list. This
> is insufficient for the polypaudio plug-in I wrote, as the polypaudio
> server might have an output of e.g. just the center channel and a
> subwoofer. I'm wondering how to properly represent this in ALSA.
>
> For the PCM, there is no problem as we as clients decide which channels
> are to be set up. The server will then need to map these to actual hardware.
>
> For mixer, however, we're modifying the server hardware so we will need
> to adapt to whatever channels it has. So provided I have a device with
> channels "left", "right", "center" and "subwoofer", should I:
>
> a) Just expose "left" and "right" since "rear left" isn't present (the
> next in ALSA's list).
>
> b) Expose all channels until I can cover my four and simply filter out
> the ones that aren't present on the server.
>
> c) Ignore ALSA's list completely and leave it to the user to figure
> out what the channel map is.
>
> d) Something else?
>
> Input appreciated.
I vote for (b). The method is simple enough.
Does the server-side configuration change on the fly, or the setup is
fixed once after the server-client connection is established?
In theory, ALSA controls can dynamically added/removed. But this may
rather confuse some applications that don't support the dynamic change
of control elements.
Takashi
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Non-continous channel map?
2006-05-03 12:56 ` Takashi Iwai
@ 2006-05-03 14:00 ` Pierre Ossman
0 siblings, 0 replies; 6+ messages in thread
From: Pierre Ossman @ 2006-05-03 14:00 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
Takashi Iwai wrote:
>
> I vote for (b). The method is simple enough.
Ok. I'll start implementing that then. :)
>
> Does the server-side configuration change on the fly, or the setup is
> fixed once after the server-client connection is established?
Yes and no. A back end specifies its channel map during creation, so
it's static during its lifetime. But we identify the back end using a
name, so it is possible that "our" back end could get removed and
another loaded with the same name.
It is possible to get notifications when this happens though, so we can
handle this gracefully.
> In theory, ALSA controls can dynamically added/removed. But this may
> rather confuse some applications that don't support the dynamic change
> of control elements.
Something that Polypaudio itself is probably guilty of. ;)
Rgds
--
Pierre Ossman Telephone: +46-13-21 46 00
Cendio AB Web: http://www.cendio.com
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-05-03 14:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-27 5:52 Non-continous channel map? Pierre Ossman
2006-05-03 12:06 ` Clemens Ladisch
2006-05-03 12:43 ` Pierre Ossman
2006-05-03 12:52 ` Takashi Iwai
2006-05-03 12:56 ` Takashi Iwai
2006-05-03 14:00 ` Pierre Ossman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.