1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Michael Sevakis 2017-12-12 20:14:34 -05:00
parent 838ff9c67d
commit c8564f1ca8
5 changed files with 19 additions and 12 deletions

View file

@ -372,7 +372,7 @@ static enum voice_state voice_message(struct voice_thread_data *td)
{
voice_playing = true;
dsp_configure(td->dsp, DSP_SET_OUT_FREQUENCY, mixer_get_frequency());
send_event(PLAYBACK_EVENT_VOICE_PLAYING, &voice_playing);
send_event(VOICE_EVENT_IS_PLAYING, &voice_playing);
}
quiet_counter = QUIET_COUNT;
@ -406,7 +406,7 @@ static enum voice_state voice_message(struct voice_thread_data *td)
if (quiet_counter <= 0)
{
voice_playing = false;
send_event(PLAYBACK_EVENT_VOICE_PLAYING, &voice_playing);
send_event(VOICE_EVENT_IS_PLAYING, &voice_playing);
}
break;
}