diff options
| author | YP3 Audiobook <noreply@example.invalid> | 2026-11-27 00:51:12 +0000 |
|---|---|---|
| committer | YP3 Audiobook <noreply@example.invalid> | 2026-11-27 00:51:12 +0000 |
| commit | 7a06b5d2d7ac329dc5cba794b019ba185b9b09e2 (patch) | |
| tree | fac537bb029a8532aadec97816292c3074b9e608 /tests/m4a/shim/codecs.h | |
| parent | 4b670f7ac2635de6d6583d603d97f0bcfbec6733 (diff) | |
| download | yp3-audiobook-firmware-7a06b5d2d7ac329dc5cba794b019ba185b9b09e2.tar.gz | |
Release 1.1
- Hold Up/Down to keep changing the volume
- Pulling the SD card powers the player off instead of crashing; with no
card at power-on it says so and turns off
- Long M4B books load without freezing the controls, with a
"Loading book N%" screen
- The Center press that powers the player on no longer pauses the book
as it resumes (which also made it load twice)
- No "Bookmark saved" pause at power-off
- USB disk shows up right away while a book loads (flasher's
"NO USB DISK")
- tests/m4a: host test of the M4B index loader
Diffstat (limited to 'tests/m4a/shim/codecs.h')
| -rw-r--r-- | tests/m4a/shim/codecs.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/m4a/shim/codecs.h b/tests/m4a/shim/codecs.h new file mode 100644 index 0000000..e2215ce --- /dev/null +++ b/tests/m4a/shim/codecs.h @@ -0,0 +1,24 @@ +/* Host stand-in for the parts of codecs.h that libm4a/demux.c uses */ +#ifndef CODECS_H +#define CODECS_H +#include <stddef.h> +#include <stdint.h> +#include <stdbool.h> +#include <sys/types.h> +enum { AFMT_MP4_AAC = 1, AFMT_MP4_AAC_HE, AFMT_MP4_ALAC }; +struct mp3entry { unsigned long length; int codectype; }; +#define CODEC_SIZE (128 * 1024) /* yp3.h, near enough */ +struct codec_api { + size_t filesize, curpos; + struct mp3entry *id3; + size_t (*read_filebuf)(void *ptr, size_t size); + void (*advance_buffer)(size_t amount); + bool (*seek_buffer)(size_t newpos); + void (*yield)(void); + void (*debugf)(const char *fmt, ...); + bool (*load_progress)(int percent); +}; +extern struct codec_api *ci; +#define ROCKBOX_LITTLE_ENDIAN 1 +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif |
