Skip to content

Commit

Permalink
Disable normalization of HRTFs.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitllama committed Jul 24, 2017
1 parent f23356d commit 7d72aab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/omnitone.js
Original file line number Diff line number Diff line change
Expand Up @@ -2243,6 +2243,7 @@ return /******/ (function(modules) { // webpackBootstrap
for (var i = 0; i < numStereoChannels; i++) {
this._mergers[i] = this._context.createChannelMerger(2);
this._convolvers[i] = this._context.createConvolver();
this._convolvers[i].normalize = false;
this._splitters[i] = this._context.createChannelSplitter(2);
}

Expand Down
3 changes: 3 additions & 0 deletions src/hoa-convolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ function HOAConvolver(context, options) {
this._mergers[i] = this._context.createChannelMerger(2);
this._convolvers[i] = this._context.createConvolver();
this._splitters[i] = this._context.createChannelSplitter(2);

// Disable normalization.
this._convolvers[i].normalize = false;
}

// Positive index (m >= 0) spherical harmonics are symmetrical around the
Expand Down

0 comments on commit 7d72aab

Please sign in to comment.