W3C home > Mailing lists > Public > public-audio@w3.org > April to June 2013

Re: AudioContext.maxChannelCount

From: Chris Rogers <crogers@google.com>
Date: Wed, 29 May 2013 10:29:10 -0700
Message-ID: <CA+EzO0k7w2njzm1hP-AwS6cB_ybzT89W5hsTtB1u-sbM5ZZg0g@mail.gmail.com>
To: Ehsan Akhgari <ehsan.akhgari@gmail.com>
Cc: "Robert O'Callahan" <robert@ocallahan.org>, Paul Adenot <paul@paul.cx>, "public-audio@w3.org" <public-audio@w3.org>
On Wed, May 29, 2013 at 7:58 AM, Ehsan Akhgari <ehsan.akhgari@gmail.com>wrote:

> On Mon, May 27, 2013 at 9:11 PM, Robert O'Callahan <robert@ocallahan.org>wrote:
>> The last time maxChannelCount and multichannel output came up, I
>> suggested that AudioDestinationNode should default channelCountMode to
>> 'max' instead of 'explicit', so many users of Web Audio would not need to
>> use maxChannelCount at all --- they could just produce as many channels as
>> they want, and the Web Audio implementation would downmix (or upmix) to the
>> actual speaker configuration. (Especially convenient when the speaker
>> configuration changes over time.) I don't recall any replies to that
>> suggestion. I still like it :-).
> I think we should do this.  crogers, do you agree?

I am reluctant to change that part right now until we've had a chance to
explore all the ramifications.  As I mentioned before, it gets a bit tricky
especially when you have multi-channel devices with large number of
channels, not necessarily connected to speaker system in the way you might

>> If we do that, it's still useful to expose maxChannelCount on
>> AudioDestinationNode --- it lets advanced users customize the audio graph
>> to the number of speakers. However, I don't think we need maxChannelCount
>> on MediaStreamDestinationAudioNode. What would it even mean? I don't think
>> we can detect the number of speakers a MediaStream is feeding into --- it
>> could be feeding into many sinks, or none, or into a sink like a
>> MediaRecorder that can handle any number of channels equally well.
> Yeah, I agree with roc here.  I don't think it makes sense to specify a
> maxChannelCount on MediaStreamAudioDestinationNode...

I agree too, just to clarify.

> --
> Ehsan
> <http://ehsanakhgari.org/>
Received on Wednesday, 29 May 2013 17:29:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:18 UTC