Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dyson_compress_1403.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
<callback event="run"><![CDATA[
unsigned long pos;
float targetlevel = MAXLEVEL * DB_CO(peak_limit);
float rgainfilter = 1.0f / (release_time * sample_rate);
float rgainfilter = 1.0f / (fmaxf(release_time, 0.0000001f) * sample_rate);
float fastgaincompressionratio = cfrate;
float compressionratio = crate;
float efilt;
Expand Down
4 changes: 2 additions & 2 deletions shaper_1187.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ float shape = 0.0f;

if (shapep < 1.0f && shapep > -1.0f) {
shape = 1.0f;
} else if (shape < 0) {
shape = -1.0f / shape;
} else if (shapep < 0) {
shape = -1.0f / shapep;
Copy link

@zonkmachine zonkmachine Nov 8, 2017

Choose a reason for hiding this comment

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

The commit message says division with 0 but that's wrong. shape < 0 never is true so we drop to else for any number that is negative and feed this as exponent in a pow() operation. No fun Not the fun you intended .

} else {
shape = shapep;
}
Expand Down