diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/recording.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 0d1ada73f6..8b52b7cac2 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -1068,6 +1068,11 @@ bool recording_screen(bool no_source) agc_preset_str[5] = str(LANG_AGC_VOICE); #endif /* HAVE_AGC */ +#ifdef HAVE_SPEAKER + /* Disable speaker to prevent feedback */ + audiohw_enable_speaker(false); +#endif + #if CONFIG_CODEC == SWCODEC audio_close_recording(); #endif @@ -1903,6 +1908,11 @@ rec_abort: audio_init_playback(); #endif /* CONFIG_CODEC == SWCODEC */ +#ifdef HAVE_SPEAKER + /* Re-enable speaker */ + audiohw_enable_speaker(global_settings.speaker_enabled); +#endif + /* make sure the trigger is really turned off */ peak_meter_trigger(false); peak_meter_set_trigger_listener(NULL); |