@@ -81,7 +81,7 @@ class AudioContext extends EventTarget {
8181 * The number of channels in the input audio streams, which the output stream will contain; the default is 6 is
8282 * this parameter is not specified.
8383 */
84- def createChannelMerger (numberOfInputs : Int = 6 ): ChannelMergerNode = js.native
84+ def createChannelMerger (numberOfInputs : Int = js.native ): ChannelMergerNode = js.native
8585
8686 /** Creates a ChannelSplitterNode, which is used to access the individual channels of an audio stream and process them
8787 * separately.
@@ -90,7 +90,7 @@ class AudioContext extends EventTarget {
9090 * The number of channels in the input audio stream that you want to output separately; the default is 6 is this
9191 * parameter is not specified.
9292 */
93- def createChannelSplitter (numberOfOutputs : Int = 6 ): ChannelSplitterNode = js.native
93+ def createChannelSplitter (numberOfOutputs : Int = js.native ): ChannelSplitterNode = js.native
9494
9595 /** Creates a ConvolverNode, which can be used to apply convolution effects to your audio graph, for example a
9696 * reverberation effect.
@@ -414,15 +414,15 @@ trait AudioBufferSourceNode extends AudioNode {
414414 * The duration parameter, which defaults to the length of the asset minus the value of offset, defines the length
415415 * of the portion of the asset to be played.
416416 */
417- def start (when : Double = 0.0 , offset : Double = 0.0 , duration : Double = js.native): Unit = js.native
417+ def start (when : Double = js.native , offset : Double = js.native , duration : Double = js.native): Unit = js.native
418418
419419 /** Schedules the end of the playback of an audio asset.
420420 *
421421 * @param when
422422 * The when parameter defines when the playback will stop. If it represents a time in the past, the playback will
423423 * end immediately. If this method is called twice or more, an exception is raised.
424424 */
425- def stop (when : Double = 0.0 ): Unit = js.native
425+ def stop (when : Double = js.native ): Unit = js.native
426426
427427 /** Is an EventHandler containing the callback associated with the ended event. */
428428 var onended : js.Function1 [Event , _] = js.native
@@ -481,7 +481,7 @@ trait AudioListener extends AudioNode {
481481 * @param z
482482 * The z position of the listener in 3D space.
483483 */
484- def setPosition (x : Double = 0.0 , y : Double = 0.0 , z : Double = 0.0 ): Unit = js.native
484+ def setPosition (x : Double = js.native , y : Double = js.native , z : Double = js.native ): Unit = js.native
485485
486486 /** Defines the orientation of the listener.
487487 *
@@ -508,8 +508,8 @@ trait AudioListener extends AudioNode {
508508 * @param zUp
509509 * The z value of the up vector of the listener.
510510 */
511- def setOrientation (x : Double = 0.0 , y : Double = 0.0 , z : Double = - 1.0 , xUp : Double = 0.0 , yUp : Double = 1.0 ,
512- zUp : Double = 0.0 ): Unit = js.native
511+ def setOrientation (x : Double = js.native , y : Double = js.native , z : Double = js.native , xUp : Double = js.native ,
512+ yUp : Double = js.native, zUp : Double = js.native ): Unit = js.native
513513}
514514
515515/** The AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as
@@ -891,10 +891,10 @@ trait OscillatorNode extends AudioNode {
891891 var `type` : String = js.native // Not sure if this is correct ...
892892
893893 /** This method specifies the exact time to start playing the tone. */
894- def start (when : Double = 0.0 ): Unit = js.native
894+ def start (when : Double = js.native ): Unit = js.native
895895
896896 /** This method specifies the exact time to stop playing the tone. */
897- def stop (when : Double = 0.0 ): Unit = js.native
897+ def stop (when : Double = js.native ): Unit = js.native
898898
899899 /** Used to point to a PeriodicWave defining a periodic waveform that can be used to shape the oscillator's output,
900900 * when type = "custom" is used.
@@ -977,7 +977,7 @@ trait PannerNode extends AudioNode {
977977 * @param z
978978 * The z position of the panner in 3D space.
979979 */
980- def setPosition (x : Double = 0.0 , y : Double = 0.0 , z : Double = 0.0 ): Unit = js.native
980+ def setPosition (x : Double = js.native , y : Double = js.native , z : Double = js.native ): Unit = js.native
981981
982982 /** Defines the direction the audio source is playing in. This can have a big effect if the sound is very directional
983983 * — controlled by the three cone-related attributes PannerNode.coneInnerAngle, PannerNode.coneOuterAngle, and
@@ -996,7 +996,7 @@ trait PannerNode extends AudioNode {
996996 * @param z
997997 * The z value of the panner's direction vector in 3D space.
998998 */
999- def setOrientation (x : Double = 1.0 , y : Double = 0.0 , z : Double = 0.0 ): Unit = js.native
999+ def setOrientation (x : Double = js.native , y : Double = js.native , z : Double = js.native ): Unit = js.native
10001000
10011001 /** Defines the velocity vector of the audio source — how fast it is moving and in what direction.
10021002 *
@@ -1015,7 +1015,7 @@ trait PannerNode extends AudioNode {
10151015 * @param z
10161016 * The z value of the panner's velocity vector.
10171017 */
1018- def setVelocity (x : Double = 0.0 , y : Double = 0.0 , z : Double = 0.0 ): Unit = js.native
1018+ def setVelocity (x : Double = js.native , y : Double = js.native , z : Double = js.native ): Unit = js.native
10191019}
10201020
10211021/** The StereoPannerNode interface of the Web Audio API represents a simple stereo panner node that can be used to pan
0 commit comments