summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/recording.c11
-rw-r--r--apps/recorder/recording.h1
2 files changed, 10 insertions, 2 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index a4662ab42e..cb934877a9 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -70,6 +70,13 @@
70#include "radio.h" 70#include "radio.h"
71#ifdef HAVE_RECORDING 71#ifdef HAVE_RECORDING
72 72
73static bool in_screen = false;
74
75bool in_recording_screen(void)
76{
77 return in_screen;
78}
79
73#define PM_HEIGHT ((LCD_HEIGHT >= 72) ? 2 : 1) 80#define PM_HEIGHT ((LCD_HEIGHT >= 72) ? 2 : 1)
74 81
75#if CONFIG_KEYPAD == RECORDER_PAD 82#if CONFIG_KEYPAD == RECORDER_PAD
@@ -794,7 +801,7 @@ bool recording_screen(bool no_source)
794 801
795 struct audio_recording_options rec_options; 802 struct audio_recording_options rec_options;
796 803
797 global_settings.recscreen_on = true; 804 in_screen = true;
798 cursor = 0; 805 cursor = 0;
799#if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) 806#if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR)
800 ata_set_led_enabled(false); 807 ata_set_led_enabled(false);
@@ -1764,7 +1771,7 @@ bool recording_screen(bool no_source)
1764 peak_meter_trigger(false); 1771 peak_meter_trigger(false);
1765 peak_meter_set_trigger_listener(NULL); 1772 peak_meter_set_trigger_listener(NULL);
1766 1773
1767 global_settings.recscreen_on = false; 1774 in_screen = false;
1768 sound_settings_apply(); 1775 sound_settings_apply();
1769 1776
1770 FOR_NB_SCREENS(i) 1777 FOR_NB_SCREENS(i)
diff --git a/apps/recorder/recording.h b/apps/recorder/recording.h
index a67337b9b6..1b313ecab5 100644
--- a/apps/recorder/recording.h
+++ b/apps/recorder/recording.h
@@ -19,6 +19,7 @@
19#ifndef RECORDING_H 19#ifndef RECORDING_H
20#define RECORDING_H 20#define RECORDING_H
21 21
22bool in_recording_screen(void);
22bool recording_screen(bool no_source); 23bool recording_screen(bool no_source);
23char *rec_create_filename(char *buf); 24char *rec_create_filename(char *buf);
24int rec_create_directory(void); 25int rec_create_directory(void);