Skip to content

Commit 48133d9

Browse files
committed
Compressor: wrong sample_rate
1 parent 2879ba4 commit 48133d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AudioTools/CoreAudio/AudioEffects/AudioEffect.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ class Compressor : public AudioEffect {
473473
//Attack -> 30 ms -> 3000
474474
//Release -> 20 ms -> 2000
475475
//Hold -> 10ms -> 1000
476-
sample_rate = sample_rate * attackMs / 1000;
476+
sample_rate = sample_rate;
477477
attack_count = sample_rate * attackMs / 1000;
478478
release_count = sample_rate * releaseMs / 1000;
479479
hold_count = sample_rate * holdMs / 1000;

0 commit comments

Comments
 (0)