mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Documentation fixes.
This commit is contained in:
+7
-2
@@ -579,6 +579,8 @@ To run locally, you'll need to use emrun:
|
|||||||
+----------------------------------+--------------------------------------------------------------------+
|
+----------------------------------+--------------------------------------------------------------------+
|
||||||
| MA_NO_WEBAUDIO | Disables the Web Audio backend. |
|
| 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_CUSTOM | Disables support for custom backends. |
|
||||||
+----------------------------------+--------------------------------------------------------------------+
|
+----------------------------------+--------------------------------------------------------------------+
|
||||||
| MA_NO_NULL | Disables the null backend. |
|
| 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 |
|
| MA_ENABLE_WEBAUDIO | Used in conjunction with MA_ENABLE_ONLY_SPECIFIC_BACKENDS to |
|
||||||
| | enable the Web Audio backend. |
|
| | 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 |
|
| MA_ENABLE_CUSTOM | Used in conjunction with MA_ENABLE_ONLY_SPECIFIC_BACKENDS to |
|
||||||
| | enable custom backends. |
|
| | 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
|
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
|
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
|
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
|
make sure you manage your voice channel properly. To configure the voice channel, set it in the
|
||||||
`dreamcast` config:
|
`dreamcast` config:
|
||||||
|
|
||||||
```c
|
```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
|
If you initialize more than one `ma_device` object, self manage a single `ma_context` object. It is
|
||||||
|
|||||||
Reference in New Issue
Block a user