How is the frameCount parameter defined in the data_callback function? #450
-
Hello, I'm currently using miniaudio for audio playback on an embedded Linux processor. The processor has multiple tasks to handle on a single core, some of these tasks are even blocking all other processes for around 1ms. So it seems to me that it is important that the So I started looking into the This brings me to my question: where and how is the value of the Thank you in advance 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's controlled by the device config via the periodSizeInFrames/Milliseconds member. By default it'll be approximately 10ms, but the exact size is determined by the backend which would explain why it differs between physical devices. Setting the period size explicitly in the device config should make it consistent. |
Beta Was this translation helpful? Give feedback.
It's controlled by the device config via the periodSizeInFrames/Milliseconds member. By default it'll be approximately 10ms, but the exact size is determined by the backend which would explain why it differs between physical devices. Setting the period size explicitly in the device config should make it consistent.