Skip to content

Commit

Permalink
refactor: rename local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Mar 28, 2018
1 parent 09dd6e6 commit 8eabfc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/renderers/constant-source-node.ts
Expand Up @@ -36,9 +36,9 @@ export class ConstantSourceNodeRenderer extends AudioNodeRenderer {

await renderAutomation(offlineAudioContext, offsetAudioParam, this._nativeNode.offset);
} else {
const nativeAudioParam = <TNativeAudioParam> AUDIO_PARAM_STORE.get(this._proxy.offset);
const offsetNativeAudioParam = <TNativeAudioParam> AUDIO_PARAM_STORE.get(this._proxy.offset);

await connectAudioParam(offlineAudioContext, <IAudioParam> (<any> this._nativeNode.offset), nativeAudioParam);
await connectAudioParam(offlineAudioContext, <IAudioParam> (<any> this._nativeNode.offset), offsetNativeAudioParam);
}

await this._connectSources(offlineAudioContext, <INativeConstantSourceNode> this._nativeNode);
Expand Down
4 changes: 2 additions & 2 deletions src/renderers/gain-node.ts
Expand Up @@ -36,9 +36,9 @@ export class GainNodeRenderer extends AudioNodeRenderer {

await renderAutomation(offlineAudioContext, gainAudioParam, this._nativeNode.gain);
} else {
const nativeAudioParam = <TNativeAudioParam> AUDIO_PARAM_STORE.get(this._proxy.gain);
const gainNativeAudioParam = <TNativeAudioParam> AUDIO_PARAM_STORE.get(this._proxy.gain);

await connectAudioParam(offlineAudioContext, <IAudioParam> (<any> this._nativeNode.gain), nativeAudioParam);
await connectAudioParam(offlineAudioContext, <IAudioParam> (<any> this._nativeNode.gain), gainNativeAudioParam);
}

await this._connectSources(offlineAudioContext, <TNativeAudioNode> this._nativeNode);
Expand Down

0 comments on commit 8eabfc2

Please sign in to comment.