1
0
Fork 0
forked from len0rd/rockbox

Temporarily disable keyclick in recording screen.

Those who have keyclick enabled and are really eagar to record upon
boot can get the samplerate messed up because who gets to set the sample
rate last (recording or mixer) is not currently deterministic.

Change-Id: Icc43ed789cf23f928ca49657cb146445b0c558cb
This commit is contained in:
Michael Sevakis 2013-06-30 20:08:08 -04:00
parent 9b990bdab1
commit bb87590e05

View file

@ -1074,6 +1074,10 @@ bool recording_screen(bool no_source)
#endif #endif
#if CONFIG_CODEC == SWCODEC #if CONFIG_CODEC == SWCODEC
/* hardware samplerate gets messed up so prevent mixer playing */
int keyclick = global_settings.keyclick;
global_settings.keyclick = 0;
/* recording_menu gets messed up: so prevent manus talking */ /* recording_menu gets messed up: so prevent manus talking */
talk_disable(true); talk_disable(true);
/* audio_init_recording stops anything playing when it takes the audio /* audio_init_recording stops anything playing when it takes the audio
@ -1956,6 +1960,9 @@ rec_abort:
/* restore talking */ /* restore talking */
talk_disable(false); talk_disable(false);
/* restore keyclick */
global_settings.keyclick = keyclick;
#else /* !SWCODEC */ #else /* !SWCODEC */
audio_init_playback(); audio_init_playback();
#endif /* CONFIG_CODEC == SWCODEC */ #endif /* CONFIG_CODEC == SWCODEC */