-
Hello. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
You need to mix them in into an intermediary buffer first, and then write out that buffer to the encoder. Mixing is just summing the samples together. |
Beta Was this translation helpful? Give feedback.
-
Now everything is mixed, the main device doesn’t even wheeze. However, there are some problems with the loopback device. It doesn't wheeze, but it still doesn't sound the way it should sound. float* loopback_buffer = nullptr; |
Beta Was this translation helpful? Give feedback.
-
Yes. I'd try to force set parameters, but no result.
|
Beta Was this translation helpful? Give feedback.
-
Ok. Thank you. I stopped in 4096. |
Beta Was this translation helpful? Give feedback.
You should rarely need to do resampling yourself. If you wanted to have everything be 44100, just set it via the device config and miniaudio will do any necessary resampling for you.
If for some reason you need to manually do resampling, you can use
ma_resampler
, but I would highly recommend you only use that as a last resort.