Skip to content

Commit

Permalink
truncate noise counter to 32 bits
Browse files Browse the repository at this point in the history
  • Loading branch information
sehugg committed Dec 1, 2018
1 parent cf74530 commit 61a1691
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/tss/PsgDeviceChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ PsgDeviceChannel.prototype.generateSN = function (length) {
PsgDeviceChannel._SHORT_MASK;
}
this.countNoise -= step;
this.countNoise |= 0; // truncate to 32-bit
}
if (0 != (this.seed & 1))
value += this.volumeNoise;
Expand Down

0 comments on commit 61a1691

Please sign in to comment.