What determines a new call to the callback function #455
Replies: 1 comment 1 reply
-
It's all ultimately controlled by the backend (WASAPI, PulseAudio, etc.). miniaudio will supply a hint to the backend that specifies what we would like, but the backend is ultimately in control of when the callback is fired. The specific way in which each backend notifies miniaudio that it needs more data is different for each backend. Some use a callback whereas others use blocking reads and writes. In the device config there's two variables that control the size of the callback: There is also a config option called If you want to get into the real details, do a search for |
Beta Was this translation helpful? Give feedback.
-
Hi,
The documentation of miniaudio tells us: 'The idea is that you choose a physical device to emit or capture audio from, and then move data to/from the device when miniaudio tells you to.' I was wondering how this works internally (especially for playback), how does miniaudio decide when it needs to request more audio frames?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions