summaryrefslogtreecommitdiff
path: root/apps/voice_thread.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2017-12-12 20:14:34 -0500
committerMichael Sevakis <jethead71@rockbox.org>2017-12-12 20:28:56 -0500
commitc8564f1ca8287eba9220df191d13c949bb49c8ce (patch)
tree7428918a9a6660dd53eefc7bf2be047e9eddccf0 /apps/voice_thread.c
parent838ff9c67d4ade0e0e0ee7132eb933a7c861d384 (diff)
downloadrockbox-c8564f1ca8287eba9220df191d13c949bb49c8ce.tar.gz
rockbox-c8564f1ca8287eba9220df191d13c949bb49c8ce.zip
Get voice event out of playback.c
Purpose: A step in removing all voice references from playback code and prelude to other changes. Change-Id: Ic3ad7f7a33b979693e18a3456ced37eb1d2281a4
Diffstat (limited to 'apps/voice_thread.c')
-rw-r--r--apps/voice_thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c
index d8a7b27d14..59568d8ff9 100644
--- a/apps/voice_thread.c
+++ b/apps/voice_thread.c
@@ -372,7 +372,7 @@ static enum voice_state voice_message(struct voice_thread_data *td)
372 { 372 {
373 voice_playing = true; 373 voice_playing = true;
374 dsp_configure(td->dsp, DSP_SET_OUT_FREQUENCY, mixer_get_frequency()); 374 dsp_configure(td->dsp, DSP_SET_OUT_FREQUENCY, mixer_get_frequency());
375 send_event(PLAYBACK_EVENT_VOICE_PLAYING, &voice_playing); 375 send_event(VOICE_EVENT_IS_PLAYING, &voice_playing);
376 } 376 }
377 377
378 quiet_counter = QUIET_COUNT; 378 quiet_counter = QUIET_COUNT;
@@ -406,7 +406,7 @@ static enum voice_state voice_message(struct voice_thread_data *td)
406 if (quiet_counter <= 0) 406 if (quiet_counter <= 0)
407 { 407 {
408 voice_playing = false; 408 voice_playing = false;
409 send_event(PLAYBACK_EVENT_VOICE_PLAYING, &voice_playing); 409 send_event(VOICE_EVENT_IS_PLAYING, &voice_playing);
410 } 410 }
411 break; 411 break;
412 } 412 }