Repository navigation
WASAPI Exclusive mode distorted audio playback #1022
|
For context I am making a general purpose audio engine built with miniaudio with the intent of being used in rhythm games or other games that need fast responsive audio. That's why I want to give the option to use exclusive mode. I am curious if any of you have experienced this, have found the cause and/or have found a way to fix it? I'm hoping this is a fault on my part and not miniaudio or my devices. I'll update this discussion if I end up finding the solution on my own. Extra note: I tested exclusive mode in a different application that has its own WASAPI implementation and it threw an error and disabled exclusive mode, so I have a hunch there's something wrong with my devices that miniaudio might not be detecting. Otherwise the other application might be doing something wrong 🤷 |
Replies: 2 comments 4 replies
|
How are you initializing your |
|
I am using ma_engine. |
I'm assuming you are calling
ma_engine_read_pcm_frames()in your data callback? If so, this is your problem:ma_engineis alwaysma_format_f32. Change that line to this: