@@ -81,7 +81,7 @@ class AudioContext extends EventTarget {
81
81
* The number of channels in the input audio streams, which the output stream will contain; the default is 6 is
82
82
* this parameter is not specified.
83
83
*/
84
- def createChannelMerger (numberOfInputs : Int = 6 ): ChannelMergerNode = js.native
84
+ def createChannelMerger (numberOfInputs : Int = js.native ): ChannelMergerNode = js.native
85
85
86
86
/** Creates a ChannelSplitterNode, which is used to access the individual channels of an audio stream and process them
87
87
* separately.
@@ -90,7 +90,7 @@ class AudioContext extends EventTarget {
90
90
* The number of channels in the input audio stream that you want to output separately; the default is 6 is this
91
91
* parameter is not specified.
92
92
*/
93
- def createChannelSplitter (numberOfOutputs : Int = 6 ): ChannelSplitterNode = js.native
93
+ def createChannelSplitter (numberOfOutputs : Int = js.native ): ChannelSplitterNode = js.native
94
94
95
95
/** Creates a ConvolverNode, which can be used to apply convolution effects to your audio graph, for example a
96
96
* reverberation effect.
@@ -414,15 +414,15 @@ trait AudioBufferSourceNode extends AudioNode {
414
414
* The duration parameter, which defaults to the length of the asset minus the value of offset, defines the length
415
415
* of the portion of the asset to be played.
416
416
*/
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
418
418
419
419
/** Schedules the end of the playback of an audio asset.
420
420
*
421
421
* @param when
422
422
* The when parameter defines when the playback will stop. If it represents a time in the past, the playback will
423
423
* end immediately. If this method is called twice or more, an exception is raised.
424
424
*/
425
- def stop (when : Double = 0.0 ): Unit = js.native
425
+ def stop (when : Double = js.native ): Unit = js.native
426
426
427
427
/** Is an EventHandler containing the callback associated with the ended event. */
428
428
var onended : js.Function1 [Event , _] = js.native
@@ -481,7 +481,7 @@ trait AudioListener extends AudioNode {
481
481
* @param z
482
482
* The z position of the listener in 3D space.
483
483
*/
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
485
485
486
486
/** Defines the orientation of the listener.
487
487
*
@@ -508,8 +508,8 @@ trait AudioListener extends AudioNode {
508
508
* @param zUp
509
509
* The z value of the up vector of the listener.
510
510
*/
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
513
513
}
514
514
515
515
/** The AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as
@@ -891,10 +891,10 @@ trait OscillatorNode extends AudioNode {
891
891
var `type` : String = js.native // Not sure if this is correct ...
892
892
893
893
/** 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
895
895
896
896
/** 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
898
898
899
899
/** Used to point to a PeriodicWave defining a periodic waveform that can be used to shape the oscillator's output,
900
900
* when type = "custom" is used.
@@ -977,7 +977,7 @@ trait PannerNode extends AudioNode {
977
977
* @param z
978
978
* The z position of the panner in 3D space.
979
979
*/
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
981
981
982
982
/** Defines the direction the audio source is playing in. This can have a big effect if the sound is very directional
983
983
* — controlled by the three cone-related attributes PannerNode.coneInnerAngle, PannerNode.coneOuterAngle, and
@@ -996,7 +996,7 @@ trait PannerNode extends AudioNode {
996
996
* @param z
997
997
* The z value of the panner's direction vector in 3D space.
998
998
*/
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
1000
1000
1001
1001
/** Defines the velocity vector of the audio source — how fast it is moving and in what direction.
1002
1002
*
@@ -1015,7 +1015,7 @@ trait PannerNode extends AudioNode {
1015
1015
* @param z
1016
1016
* The z value of the panner's velocity vector.
1017
1017
*/
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
1019
1019
}
1020
1020
1021
1021
/** The StereoPannerNode interface of the Web Audio API represents a simple stereo panner node that can be used to pan
0 commit comments