Skip to content

Commit

Permalink
fix: correct typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Mar 28, 2018
1 parent 496bca6 commit 83cd0a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/audio-nodes/audio-destination-node.ts
Expand Up @@ -40,7 +40,7 @@ export class AudioDestinationNode implements IAudioDestinationNode {

const maxChannelCount = nativeNode.maxChannelCount;

// Bug #47: The AudioDestinationNode in Edge and Safari do not intialize the maxChannelCount property correctly.
// Bug #47: The AudioDestinationNode in Edge and Safari do not initialize the maxChannelCount property correctly.
if (maxChannelCount === 0) {
if (this._isOfflineAudioContext) {
nativeNode.channelCount = channelCount;
Expand Down Expand Up @@ -70,7 +70,7 @@ export class AudioDestinationNode implements IAudioDestinationNode {
throw invalidStateErrorFactory.create();
}

// Bug #47: The AudioDestinationNode in Edge and Safari do not intialize the maxChannelCount property correctly.
// Bug #47: The AudioDestinationNode in Edge and Safari do not initialize the maxChannelCount property correctly.
if (value > this._maxChannelCount) {
throw indexSizeErrorFactory.create();
}
Expand Down
4 changes: 2 additions & 2 deletions src/audio-nodes/audio-node.ts
Expand Up @@ -67,14 +67,14 @@ export class AudioNode<T extends INativeAudioNodeFaker | TNativeAudioNode> exten
}

public get channelCount () {
// Bug #47: The AudioDestinationNode in Edge and Safari do not intialize the maxChannelCount property correctly.
// Bug #47: The AudioDestinationNode in Edge and Safari do not initialize the maxChannelCount property correctly.
return ((<TNativeAudioNode> this._nativeNode) === this._nativeNode.context.destination) ?
this._channelCount :
this._nativeNode.channelCount;
}

public set channelCount (value) {
// Bug #47: The AudioDestinationNode in Edge and Safari do not intialize the maxChannelCount property correctly.
// Bug #47: The AudioDestinationNode in Edge and Safari do not initialize the maxChannelCount property correctly.
if ((<TNativeAudioNode> this._nativeNode) === this._nativeNode.context.destination) {
this._channelCount = value;
} else {
Expand Down

0 comments on commit 83cd0a6

Please sign in to comment.