mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-24 02:36:00 +00:00
Provide default value for balance
This commit is contained in:
parent
182b4d0024
commit
be22396af2
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// The Web Audio API does not offer an easy way to make a stereo balance
|
||||
// control. This is an attempt to fill that void, using an API similar to
|
||||
// [StereoPannerNode](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode)
|
||||
export default function StereoBalanceNode(context, options) {
|
||||
export default function StereoBalanceNode(context, options = { balance: 0 }) {
|
||||
let balance = 0;
|
||||
|
||||
// ChannelSplitterNode cannot be told to use a `channelInterperatation` of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue