From 60a96123db80ad112ebdde48216966358c974dac Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 17 Feb 2026 06:52:47 +1000 Subject: [PATCH] Add Dreamcast to CMake script and readme. --- CMakeLists.txt | 9 +++++++++ README.md | 2 ++ 2 files changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 253b4d17..9dc02104 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,7 @@ option(MINIAUDIO_NO_OSS "Disable the OSS backend" option(MINIAUDIO_NO_AAUDIO "Disable the AAudio backend" OFF) option(MINIAUDIO_NO_OPENSL "Disable the OpenSL|ES backend" OFF) option(MINIAUDIO_NO_WEBAUDIO "Disable the Web Audio backend" OFF) +option(MINIAUDIO_NO_DREAMCAST "Disable the Dreamcast backend" OFF) option(MINIAUDIO_NO_NULL "Disable the null backend" OFF) option(MINIAUDIO_NO_SDL2 "Disable the SDL2 backend" OFF) option(MINIAUDIO_ENABLE_ONLY_SPECIFIC_BACKENDS "Only enable specific backends. Backends can be enabled with MINIAUDIO_ENABLE_[BACKEND]." OFF) @@ -55,6 +56,7 @@ option(MINIAUDIO_ENABLE_OPENSL "Enable the OpenSL|ES backend" option(MINIAUDIO_ENABLE_WEBAUDIO "Enable the Web Audio backend" OFF) option(MINIAUDIO_ENABLE_NULL "Enable the null backend" OFF) option(MINIAUDIO_ENABLE_SDL2 "Enable the SDL2 backend" OFF) +option(MINIAUDIO_ENABLE_DREAMCAST "Enable the Dreamcast backend" OFF) option(MINIAUDIO_NO_DECODING "Disable decoding APIs" OFF) option(MINIAUDIO_NO_ENCODING "Disable encoding APIs" OFF) option(MINIAUDIO_NO_WAV "Disable the built-in WAV decoder" OFF) @@ -111,6 +113,7 @@ normalize_backend_enabled_option(OSS) normalize_backend_enabled_option(AAUDIO) normalize_backend_enabled_option(OPENSL) normalize_backend_enabled_option(WEBAUDIO) +normalize_backend_enabled_option(DREAMCAST) normalize_backend_enabled_option(NULL) normalize_backend_enabled_option(SDL2) @@ -288,6 +291,9 @@ endif() if(MINIAUDIO_NO_WEBAUDIO) list(APPEND COMPILE_DEFINES MA_NO_WEBAUDIO) endif() +if(MINIAUDIO_NO_DREAMCAST) + list(APPEND COMPILE_DEFINES MA_NO_DREAMCAST) +endif() if(MINIAUDIO_NO_NULL) list(APPEND COMPILE_DEFINES MA_NO_NULL) endif() @@ -339,6 +345,9 @@ if(MINIAUDIO_ENABLE_ONLY_SPECIFIC_BACKENDS) if(MINIAUDIO_ENABLE_WEBAUDIO) list(APPEND COMPILE_DEFINES MA_ENABLE_WEBAUDIO) endif() + if(MINIAUDIO_ENABLE_DREAMCAST) + list(APPEND COMPILE_DEFINES MA_ENABLE_DREAMCAST) + endif() if(MINIAUDIO_ENABLE_NULL) list(APPEND COMPILE_DEFINES MA_ENABLE_NULL) endif() diff --git a/README.md b/README.md index 61cb1d21..ee970728 100644 --- a/README.md +++ b/README.md @@ -179,6 +179,7 @@ Supported Platforms - Android - Raspberry Pi - Emscripten / HTML5 +- Dreamcast (via KallistiOS) miniaudio should compile clean on other platforms, but it will not include any support for playback or capture by default. To support that, you would need to implement a custom backend. You can do this without needing to @@ -199,6 +200,7 @@ Backends - AAudio (Android 8.0+) - OpenSL|ES (Android only) - Web Audio (Emscripten) +- Dreamcast (via KallistiOS) - Null (Silence) - Custom