diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2006-12-10 14:21:31 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2006-12-10 14:21:31 +0000 |
| commit | eca9f7fd6023a2b7acde89692812d1ecbd8964e6 (patch) | |
| tree | f434bcc02db8245b27de67fda4977f19a723815f /firmware/export/audio.h | |
| parent | 0a8d88228baf68c3bc515ca4a1add44aac7e5617 (diff) | |
| download | rockbox-eca9f7fd6023a2b7acde89692812d1ecbd8964e6.zip rockbox-eca9f7fd6023a2b7acde89692812d1ecbd8964e6.tar.gz rockbox-eca9f7fd6023a2b7acde89692812d1ecbd8964e6.tar.bz2 rockbox-eca9f7fd6023a2b7acde89692812d1ecbd8964e6.tar.xz | |
Place all recording functionality on pcmrec thread to serialize all recording operations. Button mash problems should be ruled out of pcm_record.c. Add additional lightweight checks by default and display any warnings that occurred during recording in first line of recording screen when they occur by blinking back and forth from warning display to normal line (Warning: <hex bitmask>). Warnings are cleared when beginning a new recording so write the number down if you see it and file a report. Add heavier checks when PCMREC_PARANOID is defined in the player config header (encoders and pcm_record must be aware of the define since it changes the chunk header format). These checks are mainly concerned with things that may cause skipping but also add unwanted overhead for normal operation. Best used with logf enabled.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11705 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/audio.h')
| -rw-r--r-- | firmware/export/audio.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/firmware/export/audio.h b/firmware/export/audio.h index 3edbfe1..6a98d6f 100644 --- a/firmware/export/audio.h +++ b/firmware/export/audio.h @@ -39,16 +39,17 @@ #define audio_play(x) sim_audio_play(x) #endif -#define AUDIO_STATUS_PLAY 1 -#define AUDIO_STATUS_PAUSE 2 -#define AUDIO_STATUS_RECORD 4 -#define AUDIO_STATUS_PRERECORD 8 -#define AUDIO_STATUS_ERROR 16 +#define AUDIO_STATUS_PLAY 0x0001 +#define AUDIO_STATUS_PAUSE 0x0002 +#define AUDIO_STATUS_RECORD 0x0004 +#define AUDIO_STATUS_PRERECORD 0x0008 +#define AUDIO_STATUS_ERROR 0x0010 +#define AUDIO_STATUS_WARNING 0x0020 -#define AUDIOERR_DISK_FULL 1 +#define AUDIOERR_DISK_FULL 1 -#define AUDIO_GAIN_LINEIN 0 -#define AUDIO_GAIN_MIC 1 +#define AUDIO_GAIN_LINEIN 0 +#define AUDIO_GAIN_MIC 1 struct audio_debug |