apps: cleanly disable codec buffering when not supported

Move HAVE_CODEC_BUFFERING to config.h, and disable all
related code on targets that don't support the feature,
ie. hosted targets that can't implement lc_open_from_mem().

Change-Id: I0d2a43900cd05b1a80c3cee519f8ad7b26e39fe7
This commit is contained in:
Aidan MacDonald 2026-01-04 14:08:34 +00:00 committed by Solomon Peachy
parent 3d0888875e
commit 3d281c2ea3
5 changed files with 13 additions and 14 deletions

View file

@ -282,7 +282,9 @@ void codec_get_full_path(char *path, const char *codec_root_fn);
void *codec_get_buffer_callback(size_t *size);
/* defined by the codec loader (codec.c) */
#if defined(HAVE_CODEC_BUFFERING)
int codec_load_buf(int hid, struct codec_api *api);
#endif /* HAVE_CODEC_BUFFERING */
int codec_load_file(const char* codec, struct codec_api *api);
int codec_run_proc(void);
int codec_close(void);