|
@@ -91,6 +91,9 @@
|
|
|
<h3>[property:Number offset]</h3>
|
|
|
<p>An offset to the time within the audio buffer that playback should begin. Same as the *offset* paramter of [link:https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start AudioBufferSourceNode.start](). Default is *0*.</p>
|
|
|
|
|
|
+ <h3>[property:Number duration]</h3>
|
|
|
+ <p>Overrides the duration of the audio. Same as the *duration* paramter of [link:https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start AudioBufferSourceNode.start](). Default is *undefined* to play the whole buffer.</p>
|
|
|
+
|
|
|
<h3>[property:String source]</h3>
|
|
|
<p>An [link:https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode AudioBufferSourceNode] created
|
|
|
using [link:https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBufferSource AudioContext.createBufferSource]().</p>
|
|
@@ -189,7 +192,12 @@
|
|
|
<p>
|
|
|
Applies the given object of type [link:https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement HTMLMediaElement] as the source of this audio.<br />
|
|
|
Also sets [page:Audio.hasPlaybackControl hasPlaybackControl] to false.
|
|
|
+ </p>
|
|
|
|
|
|
+ <h3>[method:Audio setMediaStreamSource]( mediaStream )</h3>
|
|
|
+ <p>
|
|
|
+ Applies the given object of type [link:https://developer.mozilla.org/en-US/docs/Web/API/MediaStream MediaStream] as the source of this audio.<br />
|
|
|
+ Also sets [page:Audio.hasPlaybackControl hasPlaybackControl] to false.
|
|
|
</p>
|
|
|
|
|
|
<h3>[method:Audio setNodeSource]( audioNode )</h3>
|
|
@@ -217,6 +225,8 @@
|
|
|
|
|
|
<h2>Source</h2>
|
|
|
|
|
|
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
|
+ <p>
|
|
|
+ [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
|
+ </p>
|
|
|
</body>
|
|
|
</html>
|