From 3ea9cc468af4cce80e89d3f529eff46404e8f605 Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 17 Feb 2026 07:23:36 +1000 Subject: [PATCH] Documentation fixes. --- miniaudio.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index 073a9516..17240bfa 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -579,6 +579,8 @@ To run locally, you'll need to use emrun: +----------------------------------+--------------------------------------------------------------------+ | MA_NO_WEBAUDIO | Disables the Web Audio backend. | +----------------------------------+--------------------------------------------------------------------+ + | MA_NO_DREAMCAST | Disables the Dreamcast backend. | + +----------------------------------+--------------------------------------------------------------------+ | MA_NO_CUSTOM | Disables support for custom backends. | +----------------------------------+--------------------------------------------------------------------+ | MA_NO_NULL | Disables the null backend. | @@ -628,6 +630,9 @@ To run locally, you'll need to use emrun: | MA_ENABLE_WEBAUDIO | Used in conjunction with MA_ENABLE_ONLY_SPECIFIC_BACKENDS to | | | enable the Web Audio backend. | +----------------------------------+--------------------------------------------------------------------+ + | MA_ENABLE_DREAMCAST | Used in conjunction with MA_ENABLE_ONLY_SPECIFIC_BACKENDS to | + | | enable the Dreamcast backend. | + +----------------------------------+--------------------------------------------------------------------+ | MA_ENABLE_CUSTOM | Used in conjunction with MA_ENABLE_ONLY_SPECIFIC_BACKENDS to | | | enable custom backends. | +----------------------------------+--------------------------------------------------------------------+ @@ -3827,13 +3832,13 @@ sample rate set to one of the recommended values and pre-process your audio asse You can initialize multiple devices and specify which voice channel you want to use. There is a maximum of 64 voices. If you request two channels when initializing the device it will use two of -them. You can specify the index of the voice channel you want to use in the dreamcast device +them. You can specify the index of the voice channel you want to use in the `dreamcast` device config. You can use multiple devices to have the hardware do mixing for you, but if you do this make sure you manage your voice channel properly. To configure the voice channel, set it in the `dreamcast` config: ```c -deviceConfig.dreamcast.voiceChannel = 2; // 0 if the default. The left channel will use `voiceChannel + 0`, the right channel will use `voiceChannel + 1`. +deviceConfig.dreamcast.voiceChannel = 2; // 0 is the default. The left channel will use `voiceChannel + 0`, the right channel will use `voiceChannel + 1`. ``` If you initialize more than one `ma_device` object, self manage a single `ma_context` object. It is