diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2007-04-25 19:53:34 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2007-04-25 19:53:34 +0000 |
| commit | 205ec3279d32a152f6046ecc6ad66c39f097fa4d (patch) | |
| tree | fa8bb607ebae23a0b43428ea6850797af83b57a0 /firmware/export | |
| parent | 2a2b8d8a8234633779dca0fff5e7ce23ad4c48ed (diff) | |
| download | rockbox-205ec3279d32a152f6046ecc6ad66c39f097fa4d.zip rockbox-205ec3279d32a152f6046ecc6ad66c39f097fa4d.tar.gz rockbox-205ec3279d32a152f6046ecc6ad66c39f097fa4d.tar.bz2 rockbox-205ec3279d32a152f6046ecc6ad66c39f097fa4d.tar.xz | |
Make recording complain about every little file I/O problem (error on close() failure and fsync() failure). Why? I guess we will find out the disk is full about 1/2 sector sooner on average when the file APIs actually detect this correctly. :/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13262 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/pcm_record.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/export/pcm_record.h b/firmware/export/pcm_record.h index 865a37f..8075b00 100644 --- a/firmware/export/pcm_record.h +++ b/firmware/export/pcm_record.h @@ -45,15 +45,17 @@ #define PCMREC_E_ENCODER 0x80002000 /* filename queue has desynced from stream markers */ #define PCMREC_E_FNQ_DESYNC 0x80004000 +/* I/O error has occurred */ +#define PCMREC_E_IO 0x80008000 #ifdef PCMREC_PARANOID /* encoder has written past end of allotted space */ -#define PCMREC_E_CHUNK_OVF 0x80008000 +#define PCMREC_E_CHUNK_OVF 0x80010000 /* chunk header incorrect */ -#define PCMREC_E_BAD_CHUNK 0x80010000 +#define PCMREC_E_BAD_CHUNK 0x80020000 /* encoder read position changed outside of recording control */ -#define PCMREC_E_ENC_RD_INDEX_TRASHED 0x80020000 +#define PCMREC_E_ENC_RD_INDEX_TRASHED 0x80040000 /* encoder write position changed outside of recording control */ -#define PCMREC_E_ENC_WR_INDEX_TRASHED 0x80040000 +#define PCMREC_E_ENC_WR_INDEX_TRASHED 0x80080000 #endif /* PCMREC_PARANOID */ /** |