mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Add Dreamcast to CMake script and readme.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user