diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2013-05-31 02:41:02 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2013-05-31 03:20:35 -0400 |
commit | 5857c44017a1641fce7f00da7f16c143daacbaf6 (patch) | |
tree | b8a7ff134977ee8dd6b25b5591f4eb81172f74ab /apps/codec_thread.c | |
parent | df6e1bcce5071e02b5cd46736bff87ca0dcceffe (diff) | |
download | rockbox-5857c44017a1641fce7f00da7f16c143daacbaf6.tar.gz rockbox-5857c44017a1641fce7f00da7f16c143daacbaf6.zip |
Refactor audio thread to run both recording and playback.
Eliminates the pcmrec thread and keeps playback and recording engine
operation mutually-exclusive.
audio_thread.c contains the audio thread which branches to the
correct engine depending upon the request. It also handles the main
audio initialization.
Moves pcm_init into main.c just before dsp_init because I don't want
that one in audio_init in the new file.
(Also makes revision df6e1bc pointless ;)
Change-Id: Ifc1db24404e6d8dd9ac42d9f4dfbc207aa9a26e1
Diffstat (limited to 'apps/codec_thread.c')
-rw-r--r-- | apps/codec_thread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/codec_thread.c b/apps/codec_thread.c index 308b2ff982..54bc28e19a 100644 --- a/apps/codec_thread.c +++ b/apps/codec_thread.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include "codecs.h" | 26 | #include "codecs.h" |
27 | #include "codec_thread.h" | 27 | #include "codec_thread.h" |
28 | #include "pcmbuf.h" | 28 | #include "pcmbuf.h" |
29 | #include "audio_thread.h" | ||
29 | #include "playback.h" | 30 | #include "playback.h" |
30 | #include "buffering.h" | 31 | #include "buffering.h" |
31 | #include "dsp_core.h" | 32 | #include "dsp_core.h" |