-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
dom/src/main/scala/org/scalajs/dom/OscillatorNodeOptions.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** Documentation is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API and available | ||
* under the Creative Commons Attribution-ShareAlike v2.5 or later. http://creativecommons.org/licenses/by-sa/2.5/ | ||
* | ||
* Everything else is under the MIT License http://opensource.org/licenses/MIT | ||
*/ | ||
package org.scalajs.dom | ||
|
||
import scala.scalajs.js | ||
|
||
trait OscillatorNodeOptions extends js.Object { | ||
var `type`: js.UndefOr[OscillatorNodeType] = js.undefined | ||
var detune: js.UndefOr[Double] = js.undefined | ||
var frequency: js.UndefOr[Double] = js.undefined | ||
var periodicWave: js.UndefOr[PeriodicWave] = js.undefined | ||
var channelCount: js.UndefOr[Int] = js.undefined | ||
var channelCountMode: js.UndefOr[AudioNodeChannelCountMode] = js.undefined | ||
var channelInterpretation: js.UndefOr[AudioNodeChannelInterpretation] = js.undefined | ||
} | ||
|
19 changes: 19 additions & 0 deletions
19
dom/src/main/scala/org/scalajs/dom/OscillatorNodeType.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** Documentation is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API and available | ||
* under the Creative Commons Attribution-ShareAlike v2.5 or later. http://creativecommons.org/licenses/by-sa/2.5/ | ||
* | ||
* Everything else is under the MIT License http://opensource.org/licenses/MIT | ||
*/ | ||
package org.scalajs.dom | ||
|
||
import scala.scalajs.js | ||
|
||
@js.native | ||
sealed trait OscillatorNodeType extends js.Any | ||
|
||
object OscillatorNodeType { | ||
val sine: OscillatorNodeType = "sine".asInstanceOf[OscillatorNodeType] | ||
val square: OscillatorNodeType = "square".asInstanceOf[OscillatorNodeType] | ||
val sawtooth: OscillatorNodeType = "sawtooth".asInstanceOf[OscillatorNodeType] | ||
val triangle: OscillatorNodeType = "triangle".asInstanceOf[OscillatorNodeType] | ||
val custom: OscillatorNodeType = "custom".asInstanceOf[OscillatorNodeType] | ||
} |