Skip to content

Commit

Permalink
Merge pull request #75 from w3c/more-audio-text
Browse files Browse the repository at this point in the history
Update audio explainer with intro + WebIDL
  • Loading branch information
alvestrand authored Dec 7, 2023
2 parents 8944ed6 + 6729ccf commit bf611c4
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion audio-explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,25 @@ This document contains arguments for including audio processing in the Breakout
Box mechanism, and preserves pieces of text that have been removed from the spec
because there is no WG consensus on including audio.

# Spec changes needed
This is a supporting document for [issue #29](https://github.com/w3c/mediacapture-transform/issues/29).

# Examples of processing where audio support would be helpful

TBD


# Spec changes proposed

These spec changes are included here because the text contains information
that was present in earlier versions of the specification, but were deleted
when the decision was made to not document stuff that did not have WG consensus.

In addition, the text below contains changes that are required to align the
audio processing API with the presently proposed video processing API.

Markup included is intended to be consumed by Bikeshed.

## Detailed changes

Include <audio> tags as a possible destination

Expand Down Expand Up @@ -39,3 +57,18 @@ If the track is an audio track, the chunks will be {{AudioData}} objects.
Under "Security and Privacy considerations", include AudioData as an alternative
to VideoFrame.

TODO: Include consideration of constraints for audio tracks.

## Additional IDL for AudioTrackGenerator
This IDL is intended to parallel that for VideoTrackGenerator. In previous
proposals, both versions were included in MediaStreamTrackGenerator.

<pre class="idl">
[Exposed=DedicatedWorker]
interface AudioTrackGenerator {
constructor();
readonly attribute WritableStream writable;
attribute boolean muted;
readonly attribute MediaStreamTrack track;
};
</pre>

0 comments on commit bf611c4

Please sign in to comment.