mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-07-30 08:19:14 +02:00
debug again
This commit is contained in:
+4
-1
@@ -44,7 +44,10 @@ float bs412_compress(BS412Compressor* comp, float audio, float sample_mpx) {
|
|||||||
|
|
||||||
if(comp->sample_counter > comp->sample_rate) {
|
if(comp->sample_counter > comp->sample_rate) {
|
||||||
#ifdef BS412_DEBUG
|
#ifdef BS412_DEBUG
|
||||||
debug_printf("MPX power: %.2f dBr with gain %.2fx (%.2f dBr)\n", comp->modulation_power, comp->gain, deviation_to_dbr(comp->avg_deviation * comp->gain));
|
debug_printf("MPX: %.2f dBr | gain: %.6f | target_gain: %.6f\n",
|
||||||
|
comp->modulation_power,
|
||||||
|
comp->gain,
|
||||||
|
target_gain);
|
||||||
#endif
|
#endif
|
||||||
comp->sample_counter = 0;
|
comp->sample_counter = 0;
|
||||||
if(comp->can_compress == 0) comp->second_counter++;
|
if(comp->can_compress == 0) comp->second_counter++;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#define BS412_DEBUG
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define BS412_DEBUG
|
#define BS412_DEBUG
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user