forked from len0rd/rockbox
Use the correct event state constants.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15423 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
da93299865
commit
4bce3ad98a
1 changed files with 4 additions and 4 deletions
|
@ -1344,7 +1344,7 @@ static void voice_thread(void)
|
|||
logf("Loading voice codec");
|
||||
voice_codec_loaded = true;
|
||||
semaphore_wait(&sem_codecthread);
|
||||
event_set_state(&event_codecthread, false);
|
||||
event_set_state(&event_codecthread, STATE_NONSIGNALED);
|
||||
set_current_codec(CODEC_IDX_VOICE);
|
||||
dsp_configure(DSP_RESET, 0);
|
||||
voice_remaining = 0;
|
||||
|
@ -1839,7 +1839,7 @@ static void codec_thread(void)
|
|||
queue_post(&voice_queue, Q_AUDIO_PLAY, 0);
|
||||
}
|
||||
semaphore_wait(&sem_codecthread);
|
||||
event_set_state(&event_codecthread, true);
|
||||
event_set_state(&event_codecthread, STATE_SIGNALED);
|
||||
#endif
|
||||
set_current_codec(CODEC_IDX_AUDIO);
|
||||
ci.stop_codec = false;
|
||||
|
@ -1871,7 +1871,7 @@ static void codec_thread(void)
|
|||
queue_post(&voice_queue, Q_AUDIO_PLAY, 0);
|
||||
}
|
||||
semaphore_wait(&sem_codecthread);
|
||||
event_set_state(&event_codecthread, true);
|
||||
event_set_state(&event_codecthread, STATE_SIGNALED);
|
||||
#endif
|
||||
set_current_codec(CODEC_IDX_AUDIO);
|
||||
ci.stop_codec = false;
|
||||
|
@ -1893,7 +1893,7 @@ static void codec_thread(void)
|
|||
queue_post(&voice_queue, Q_ENCODER_RECORD, 0);
|
||||
}
|
||||
semaphore_wait(&sem_codecthread);
|
||||
event_set_state(&event_codecthread, true);
|
||||
event_set_state(&event_codecthread, STATE_SIGNALED);
|
||||
#endif
|
||||
logf("loading encoder");
|
||||
set_current_codec(CODEC_IDX_AUDIO);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue