Skip to content

Commit dfc5b1f

Browse files
committed
Introduction of the AudioDestinationNode module
AudioDestinationNode is a subclass of AudioNode with no constructor and no extra method. The only effective difference is the `maxChannelCount` instance property, which is already covered by the `audioDestinationNode` type in the `WebAudioAPI` module. This PR allows for `AudioContext`'s `destination` property to be used like an `AudioNode`, especially being connected to by other nodes since this is the only way to output audio to speakers. For more information, check [MDN](https://developer.mozilla.org/en-US/docs/Web/API/AudioDestinationNode)
1 parent c909d30 commit dfc5b1f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Diff for: src/WebAudioAPI/AudioDestinationNode.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/WebAudioAPI/AudioDestinationNode.res

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
open WebAudioAPI
2+
3+
include AudioNode.Impl({
4+
type t = audioDestinationNode
5+
})

0 commit comments

Comments
 (0)