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

@ -689,6 +689,11 @@ Lyre prototype 1 */
# endif
#endif
/* Codec buffering requires the ability to load code from RAM */
#if CONFIG_PLATFORM & PLATFORM_NATIVE
# define HAVE_CODEC_BUFFERING
#endif
/* setup basic macros from capability masks */
#include "config_caps.h"