diff options
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r-- | apps/recorder/recording.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 161b113bce..e3a976b7ac 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -381,13 +381,15 @@ static void change_recording_gain(bool increment, bool left, bool right) | |||
381 | #if defined(HAVE_LINE_REC) || defined(HAVE_FMRADIO_REC) | 381 | #if defined(HAVE_LINE_REC) || defined(HAVE_FMRADIO_REC) |
382 | HAVE_LINE_REC_(case AUDIO_SRC_LINEIN:) | 382 | HAVE_LINE_REC_(case AUDIO_SRC_LINEIN:) |
383 | HAVE_FMRADIO_REC_(case AUDIO_SRC_FMRADIO:) | 383 | HAVE_FMRADIO_REC_(case AUDIO_SRC_FMRADIO:) |
384 | if (left) global_settings.rec_left_gain += factor; | 384 | if (left) global_settings.rec_left_gain += |
385 | if (right) global_settings.rec_right_gain += factor; | 385 | factor * sound_steps(SOUND_LEFT_GAIN); |
386 | if (right) global_settings.rec_right_gain += | ||
387 | factor * sound_steps(SOUND_RIGHT_GAIN); | ||
386 | break; | 388 | break; |
387 | #endif /* LINE, FMRADIO */ | 389 | #endif /* LINE, FMRADIO */ |
388 | #if defined(HAVE_MIC_REC) | 390 | #if defined(HAVE_MIC_REC) |
389 | case AUDIO_SRC_MIC: | 391 | case AUDIO_SRC_MIC: |
390 | global_settings.rec_mic_gain += factor; | 392 | global_settings.rec_mic_gain += factor * sound_steps(SOUND_MIC_GAIN); |
391 | #endif | 393 | #endif |
392 | } | 394 | } |
393 | } | 395 | } |
@@ -494,7 +496,7 @@ static void auto_gain_control(int *peak_l, int *peak_r, int *balance) | |||
494 | (global_settings.rec_agc_cliptime + 1); | 496 | (global_settings.rec_agc_cliptime + 1); |
495 | if (agc_left > AGC_HIGH) { | 497 | if (agc_left > AGC_HIGH) { |
496 | agc_droptime++; | 498 | agc_droptime++; |
497 | agc_risetime=0; | 499 | agc_risetime = 0; |
498 | if (agc_left > AGC_PEAK) | 500 | if (agc_left > AGC_PEAK) |
499 | agc_droptime += 2; | 501 | agc_droptime += 2; |
500 | } | 502 | } |