Skip to content
Permalink
Browse files

Introduce MediaStreamTrackAudioSourceNode.

  • Loading branch information...
padenot committed Sep 19, 2016
1 parent 63dd7c3 commit 59734de1310d623e02c0f818b7e24d1266036d5a
Showing with 71 additions and 6 deletions.
  1. +71 −6 index.html
@@ -272,12 +272,14 @@ <h2 id="Features">
element</a>.
</li>
<li>Processing live audio input using a <a href=
"#MediaStreamAudioSourceNode">MediaStream</a> from getUserMedia().
"#MediaStreamTrackAudioSourceNode">MediaStream</a> from
getUserMedia().
</li>
<li>Integration with WebRTC
<ul>
<li>Processing audio received from a remote peer using a
<a><code>MediaStreamAudioSourceNode</code></a> and [[!webrtc]].
<a><code>MediaStreamTrackAudioSourceNode</code></a> and
[[!webrtc]].
</li>
<li>Sending a generated or processed audio stream to a remote
peer using a <a><code>MediaStreamAudioDestinationNode</code></a>
@@ -657,6 +659,10 @@ <h2 id="APIOverview">
<a><code>AudioNode</code></a> which is the audio source from a
MediaStream such as live audio input, or from a remote peer.
</li>
<li>A <a><code>MediaStreamTrackAudioSourceNode</code></a> interface,
an <a><code>AudioNode</code></a> which is the audio source from a
<code>MediaStreamTrack</code>.
</li>
<li>A <a><code>MediaStreamAudioDestinationNode</code></a> interface,
an <a><code>AudioNode</code></a> which is the audio destination to a
MediaStream sent to a remote peer.
@@ -1984,6 +1990,22 @@ <h2 id="AudioContext">
</dd>
</dl>
</dd>
<dt>
MediaStreamTrackAudioSourceNode createMediaStreamSource()
</dt>
<dd>
<p>
Creates a <a><code>MediaStreamAudioSourceNode</code></a>.
</p>
<dl class="parameters">
<dt>
AudioMediaStreamTrack mediaStreamTrack
</dt>
<dd>
The audio media stream track that will act as source.
</dd>
</dl>
</dd>
<dt>
MediaStreamAudioDestinationNode createMediaStreamDestination()
</dt>
@@ -9605,11 +9627,11 @@ <h2 id="MediaStreamAudioSourceNode">
</h2>
<p>
This interface represents an audio source from a
<code>MediaStream</code>. The track that will be used as the source of
audio and will be output from this node is the first
<code>MediaStream</code>. The track that will be used as the source
of audio and will be output from this node is the first
<code>AudioMediaStreamTrack</code>, when alphabetically sorting the
tracks of this <code>MediaStream</code> by their <code>id</code>
attribute. will be used as a source of audio. Those interfaces are
attribute. will be used as a source of audio. Those interfaces are
described in [[!mediacapture-streams]].
</p>
<p class="note">
@@ -9652,6 +9674,48 @@ <h2>
</dl>
</section>
</section>
<section>
<h2 id="MediaStreamTrackAudioSourceNode">
The MediaStreamTrackAudioSourceNode Interface
</h2>
<p>
This interface represents an audio source from a
<code>AudioMediaStreamTrack</code>.
</p>
<pre>
numberOfInputs : 0
numberOfOutputs : 1
</pre>
<p>
The number of channels of the output corresponds to the number of
channels of the <code>AudioMediaStreamTrack</code>.
</p>
<p>
This node has no <a>tail-time</a> reference.
</p>
<dl title=
"[Constructor(AudioContext context, MediaStreamTrackAudioSourceOptions options)]interface MediaStreamTrackAudioSourceNode : AudioNode"
class="idl"></dl>
<section>
<h2>
MediaStreamTrackAudioSourceOptions
</h2>
<p>
This specifies the options for constructing a
<a><code>MediaStreamTrackAudioSourceNode</code></a>. This is
required.
</p>
<dl title="dictionary MediaStreamTrackAudioSourceOptions" class=
"idl">
<dt>
required AudioMediaStreamTrack mediaStreamTrack
</dt>
<dd>
The audio media stream track that will act as a source.
</dd>
</dl>
</section>
</section>
<section>
<h2>
The MediaStreamAudioDestinationNode Interface
@@ -11152,7 +11216,8 @@ <h3>
<li>The <a>DynamicsCompressorNode</a> has a look ahead algorithm that
causes delay in the signal path.
</li>
<li>The <a>MediaStreamAudioSourceNode</a> and
<li>The <a>MediaStreamAudioSourceNode</a>,
<a>MediaStreamTrackAudioSourceNode</a> and
<a>MediaStreamAudioDestinationNode</a>, depending on the
implementation, can add buffers internally that add delays.
</li>

0 comments on commit 59734de

Please sign in to comment.
You can’t perform that action at this time.