Skip to content

OfflineAudioContext destination channelCount and channelCountMode changes? #824

@rtoy

Description

@rtoy

The channelCount and channelCountMode are normally writable. But what about the AudioDestinationNode for an OfflineAudioContext?

I don't know how to make sense to create an offline context of, say, 7 channels, and then change the channelCount to 3. We've already created a 7-channel buffer to hold the result, so what does it mean to have a channelCount of 3?

Also, the default channelCountMode is "explicit" for the destination. What if I change to "max"? Using the above example, if I now feed in a 10-channel source, the "max" setting kind of implies that output will have 10 channels. But the buffer has already been created.

For simplicity, I propose that channelCount and channelCountMode cannot be changed for an offline context. I think it's fine to allow the user to change the channelnterpretation to get the desired mixing effects (or not).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs EditsDecision has been made, the issue can be fixed. https://speced.github.io/spec-maintenance/about/

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions