mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 08:44:04 +02:00
Add small section for optimization tips to documentation.
This still needs some expansion.
This commit is contained in:
+14
-1
@@ -3295,7 +3295,20 @@ Some backends have some nuance details you may want to be aware of.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
16. Miscellaneous Notes
|
16. Optimization Tips
|
||||||
|
=====================
|
||||||
|
|
||||||
|
16.1. High Level API
|
||||||
|
--------------------
|
||||||
|
- If a sound does not require doppler or pitch shifting, consider disabling pitching by
|
||||||
|
initializing the sound with the `MA_SOUND_FLAG_NO_PITCH` flag.
|
||||||
|
- If a sound does not require spatialization, disable it by initialzing the sound with the
|
||||||
|
`MA_SOUND_FLAG_NO_SPATIALIZATION` flag. It can be renabled again post-initialization with
|
||||||
|
`ma_sound_set_spatialization_enabled()`.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
17. Miscellaneous Notes
|
||||||
=======================
|
=======================
|
||||||
- Automatic stream routing is enabled on a per-backend basis. Support is explicitly enabled for
|
- Automatic stream routing is enabled on a per-backend basis. Support is explicitly enabled for
|
||||||
WASAPI and Core Audio, however other backends such as PulseAudio may naturally support it, though
|
WASAPI and Core Audio, however other backends such as PulseAudio may naturally support it, though
|
||||||
|
|||||||
Reference in New Issue
Block a user