-
Hello
Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It doesn't look like you are using ma_engine in that code, unless sound_default_mixer is a global ma_engine instance.
I'm sure there must be a much easier way of doing this... |
Beta Was this translation helpful? Give feedback.
-
I somehow missed this one. You don't change the internal device when using engineConfig.noDevice = MA_TRUE; // <-- This tells miniaudio to not use an internal `ma_device` with the `ma_engine` object.
engineConfig.channels = YOUR_CHANNEL_COUNT; // <-- This and `sampleRate` *must* be specified when `noDevice` is set.
engineConfig.sampleRate = YOUR_SAMPLE_RATE; Then you need to manually call The alternative is to do a full teardown and reinitialization of a new |
Beta Was this translation helpful? Give feedback.
I somehow missed this one. You don't change the internal device when using
ma_engine
. What you can do instead is use thema_device
API directly and initialize yourma_engine
object to not use it's own self-managedma_device
. To do this, you configure the engine's config:Then you need to manually call
ma_engine_read_pcm_frames()
in yourma_device
data callback. With this technique you are using both the low-…