mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-07-29 15:59:14 +02:00
fix debug
This commit is contained in:
+7
-6
@@ -43,12 +43,6 @@ float bs412_compress(BS412Compressor* comp, float audio, float sample_mpx) {
|
||||
}
|
||||
|
||||
if(comp->sample_counter > comp->sample_rate) {
|
||||
#ifdef BS412_DEBUG
|
||||
debug_printf("MPX: %.2f dBr | gain: %.6f | target_gain: %.6f\n",
|
||||
comp->modulation_power,
|
||||
comp->gain,
|
||||
target_gain);
|
||||
#endif
|
||||
comp->sample_counter = 0;
|
||||
if(comp->can_compress == 0) comp->second_counter++;
|
||||
}
|
||||
@@ -79,5 +73,12 @@ float bs412_compress(BS412Compressor* comp, float audio, float sample_mpx) {
|
||||
|
||||
comp->sample_counter++;
|
||||
|
||||
#ifdef BS412_DEBUG
|
||||
debug_printf("MPX: %.2f dBr | gain: %.6f | target_gain: %.6f\n",
|
||||
comp->modulation_power,
|
||||
comp->gain,
|
||||
target_gain);
|
||||
#endif
|
||||
|
||||
return output_sample;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user