Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SthephanShinkufag committed Dec 3, 2021
1 parent bf51ff7 commit f6fca68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audioProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class audioProcessor extends AudioWorkletProcessor {
if(funcValue !== this.lastFuncValue) {
if(isNaN(funcValue)) {
this.lastByteValue = NaN;
} if(isBytebeat) {
} else if(isBytebeat) {
this.lastByteValue = funcValue & 255;
this.lastValue = this.lastByteValue / 127.5 - 1;
} else if(isFloatbeat) {
Expand Down

1 comment on commit f6fca68

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A stupid mistake I haven't noticed for a month =\

Please sign in to comment.