This rebases #372, addressing the recent changes introduced by #397, #395, and #371 in the process. TODO: - [ ] Complete implementation of `callback` and `playback` timestamps in the output stream callback.