diff --git a/audio-explainer.md b/audio-explainer.md index a1d2475..3cb496c 100644 --- a/audio-explainer.md +++ b/audio-explainer.md @@ -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 @@ -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. + +
+[Exposed=DedicatedWorker]
+interface AudioTrackGenerator {
+  constructor();
+  readonly attribute WritableStream writable;
+  attribute boolean muted;
+  readonly attribute MediaStreamTrack track;
+};
+