Skip to content

Updating stream object to support multichannel audio #52

@stevenrick

Description

@stevenrick

Currently the application only records a single channel of audio per stream (whether or not video is present and whether or not the device supports more than one channel)

In order to produce more lossless data we should update the way we handle audio constraints to record all available channels (or give the user the ability to record all available channels?)

To verify this can hardcode channelCount: 2, into constraints and will update recording to stereo if supported

Our solution should be device capability aware - so can use something like
var microphone = this.#audioContext.createMediaStreamSource(stream); and then microphone.channelCount); in monitorAudio() to get the reported number of channels available.

More information on web audio api documentation available at MDN

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions