mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-07-31 08:49:17 +02:00
try to fix
This commit is contained in:
+3
-3
@@ -455,6 +455,9 @@ int main(int argc, char **argv) {
|
||||
float sca_in[BUFFER_SIZE] = {0};
|
||||
float left[BUFFER_SIZE], right[BUFFER_SIZE];
|
||||
float output[BUFFER_SIZE];
|
||||
|
||||
float current_audio_level = 1.0f;
|
||||
int audio_level_adjusted = 0;
|
||||
while (to_run) {
|
||||
if (pa_simple_read(input_device, audio_stereo_input, sizeof(audio_stereo_input), &pulse_error) < 0) {
|
||||
fprintf(stderr, "Error reading from input device: %s\n", pa_strerror(pulse_error));
|
||||
@@ -485,9 +488,6 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
}
|
||||
|
||||
float current_audio_level = 1.0f;
|
||||
int audio_level_adjusted = 0;
|
||||
|
||||
for (int i = 0; i < BUFFER_SIZE; i++) {
|
||||
float l_in = left[i];
|
||||
float r_in = right[i];
|
||||
|
||||
Reference in New Issue
Block a user