Commit Graph

3 Commits

Author SHA1 Message Date
David Reid 636fe28d86 API CHANGE: Remove the pContext parameter from device enum callback.
This is part of some future work to decouple `ma_context` and
`ma_device` from backends. If you need access to the context for some
reason, you can pass it in via the user data.
2025-07-04 16:24:22 +10:00
David Reid ed68fda5d0 Fix some errors with the SDL backend. 2023-08-17 19:29:27 +10:00
David Reid 7e01c6535b More work on custom device backends.
With this commit, custom backends can now be implemented as
self-contained modules that can easily be plugged in and mixed and
matched depending on a programs requirements. The order in which
custom backends are specified in the context config determine their
priority.

This commit updates the custom_backend example by moving the SDL
code out into its own file in "extras/backends/sdl". The example will
now just include the SDL code files like normal. This represents a more
realistic scenario.
2023-08-07 16:14:05 +10:00