From 7a06b5d2d7ac329dc5cba794b019ba185b9b09e2 Mon Sep 17 00:00:00 2001 From: YP3 Audiobook Date: Fri, 27 Nov 2026 00:51:12 +0000 Subject: 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 --- tests/m4a/shim/codeclib.h | 3 +++ tests/m4a/shim/codecs.h | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 tests/m4a/shim/codeclib.h create mode 100644 tests/m4a/shim/codecs.h (limited to 'tests/m4a/shim') diff --git a/tests/m4a/shim/codeclib.h b/tests/m4a/shim/codeclib.h new file mode 100644 index 0000000..1c46fd0 --- /dev/null +++ b/tests/m4a/shim/codeclib.h @@ -0,0 +1,3 @@ +#include "codecs.h" +void *codec_malloc(size_t size); +#define malloc(x) codec_malloc(x) 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 +#include +#include +#include +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 -- cgit v1.2.3