diff options
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r-- | apps/recorder/recording.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index e6bb833584..007ac8dc9d 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -93,9 +93,14 @@ | |||
93 | bool f2_rec_screen(void); | 93 | bool f2_rec_screen(void); |
94 | bool f3_rec_screen(void); | 94 | bool f3_rec_screen(void); |
95 | 95 | ||
96 | #define SOURCE_MIC 0 | 96 | #define SOURCE_MIC 0 |
97 | #define SOURCE_LINE 1 | 97 | #define SOURCE_LINE 1 |
98 | #ifdef HAVE_SPDIF_IN | ||
98 | #define SOURCE_SPDIF 2 | 99 | #define SOURCE_SPDIF 2 |
100 | #define MAX_SOURCE SOURCE_SPDIF | ||
101 | #else | ||
102 | #define MAX_SOURCE SOURCE_LINE | ||
103 | #endif | ||
99 | 104 | ||
100 | #define MAX_FILE_SIZE 0x7FF00000 /* 2 GB - 1 MB */ | 105 | #define MAX_FILE_SIZE 0x7FF00000 /* 2 GB - 1 MB */ |
101 | 106 | ||
@@ -699,8 +704,7 @@ bool recording_screen(void) | |||
699 | last_seconds = 0; | 704 | last_seconds = 0; |
700 | } | 705 | } |
701 | 706 | ||
702 | /* Show mic gain if input source is Mic */ | 707 | if(global_settings.rec_source == SOURCE_MIC) |
703 | if(global_settings.rec_source == 0) | ||
704 | { | 708 | { |
705 | snprintf(buf, 32, "%s: %s", str(LANG_RECORDING_GAIN), | 709 | snprintf(buf, 32, "%s: %s", str(LANG_RECORDING_GAIN), |
706 | fmt_gain(SOUND_MIC_GAIN, | 710 | fmt_gain(SOUND_MIC_GAIN, |
@@ -746,7 +750,9 @@ bool recording_screen(void) | |||
746 | } | 750 | } |
747 | } | 751 | } |
748 | 752 | ||
753 | #ifdef SOURCE_SPDIF | ||
749 | if(global_settings.rec_source != SOURCE_SPDIF) | 754 | if(global_settings.rec_source != SOURCE_SPDIF) |
755 | #endif | ||
750 | put_cursorxy(0, 4 + cursor, true); | 756 | put_cursorxy(0, 4 + cursor, true); |
751 | 757 | ||
752 | if (global_settings.rec_source != SOURCE_LINE) { | 758 | if (global_settings.rec_source != SOURCE_LINE) { |
@@ -987,7 +993,7 @@ bool f3_rec_screen(void) | |||
987 | case BUTTON_LEFT: | 993 | case BUTTON_LEFT: |
988 | case BUTTON_F3 | BUTTON_LEFT: | 994 | case BUTTON_F3 | BUTTON_LEFT: |
989 | global_settings.rec_source++; | 995 | global_settings.rec_source++; |
990 | if(global_settings.rec_source > 2) | 996 | if(global_settings.rec_source > MAX_SOURCE) |
991 | global_settings.rec_source = 0; | 997 | global_settings.rec_source = 0; |
992 | used = true; | 998 | used = true; |
993 | break; | 999 | break; |