You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, the position of the playhead is updated on the audio hardware thread.
The frequency of these calls depends on the audio buffer setting from the preferences. By default, we request 100ms, which means an update rate of 10fps, which is slow.
Your idea
An alternative implementation would be:
relocate this functionality on the audio thread (not the hardware thread)
create a dedicated class for this, which has access to the playback policy (so that it knows if looping back)
each time we push a block of samples for the audio thread to consume, update the playhead position to the first sample of that block
at a desired refresh rate, extrapolate (or "guess") the intermediary playhead position
Activity
DavidBailes commentedon Sep 26, 2025
@saintmatthieu .
Users of screen readers often position the playback cursor, and the start and end of selection on the basis of the audio they hear during playback - eg they stop playback when they get to a certain point in the audio.
So ideally, the position of the playback cursor should be synchronised which the audio being played back through the computers speakers/headphones.
Although this isn't exactly the case in AU3, it would be good if any changes you make at least don't make the situation any worse.
The following paper raises the issue of this synchronisation:
http://www.rossbencina.com/static/writings/portaudio_sync_acmc2003.pdf
saintmatthieu commentedon Sep 26, 2025
@DavidBailes this is exactly what I will be aiming for.
DavidBailes commentedon Sep 26, 2025
@saintmatthieu
Thanks, that's great!
[-]Snappier playhead[/-][+]Smoother playhead[/+]chinakov commentedon Oct 24, 2025
Tested, thanks!