mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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
This commit is contained in:
parent
df6e1bcce5
commit
5857c44017
11 changed files with 553 additions and 564 deletions
|
|
@ -42,6 +42,8 @@
|
|||
/* encoder has written past end of allocated space */
|
||||
#define PCMREC_E_CHUNK_OVF 0x80010000
|
||||
#endif /* DEBUG */
|
||||
/* DMA callback has reported an error */
|
||||
#define PCMREC_E_DMA 0x80020000
|
||||
|
||||
/** General functions for high level codec recording **/
|
||||
/* pcm_rec_error_clear is deprecated for general use. audio_error_clear
|
||||
|
|
@ -49,7 +51,7 @@
|
|||
void pcm_rec_error_clear(void);
|
||||
/* pcm_rec_status is deprecated for general use. audio_status merges the
|
||||
results for consistency with the hardware codec version */
|
||||
unsigned long pcm_rec_status(void);
|
||||
unsigned int pcm_rec_status(void);
|
||||
unsigned long pcm_rec_get_warnings(void);
|
||||
void pcm_rec_init(void) INIT_ATTR;
|
||||
int pcm_rec_current_bitrate(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue