Repository navigation
How to make sure that data callback of build_output_stream runs faster than data callback of build_input_stream ? #1320
|
Audio data is collected on one computer and transferred to another computer for playback. If the acquisition frequency is higher than the playback frequency, the delay will increase. It seems that the only parameter I can adjust is Line 153 in 17e7ab6 Another way is to change the build_output_stream callback data length, now it is 1024. |
Answered by
roderickvd
Aug 17, 2026
Replies: 1 comment
|
When you are crossing different clock domains, you will experience drift. The "feedback" example shows how to use a buffer to account for most of this, at the cost of higher latency. More advanced approaches would use asynchronous resampling, e.g. with Rubato. |
0 replies
Answer selected by
roderickvd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

When you are crossing different clock domains, you will experience drift. The "feedback" example shows how to use a buffer to account for most of this, at the cost of higher latency. More advanced approaches would use asynchronous resampling, e.g. with Rubato.