Skip to content

fix(coreaudio): timeout and timestamp fixes - #1378

Merged
roderickvd merged 8 commits into
masterfrom
fix/coreaudio-hw-sample-rate
Sep 20, 2026
Merged

roderickvd merged 8 commits into
masterfrom
fix/coreaudio-hw-sample-rate

Conversation

@roderickvd

Copy link
Copy Markdown
Member

Timeout fixes:

  • A None timeout now waits indefinitely for sample rate and format changes, instead of giving up after 1 or 2 seconds.
  • Fix sample rate changes waiting on a device that has been disconnected.
  • Fix stream creation taking longer than the timeout while the device changes format.

Timestamp fixes:

  • Fix timestamps going stale when the device's buffer size changes during a stream.
  • Fix timestamps and buffer_size() being off when the stream sample rate differs from the hardware rate.

Source files were getting pretty big, so I extracted parts of it in the last two commits.

@roderickvd
roderickvd force-pushed the fix/coreaudio-hw-sample-rate branch from de8673d to 0f8d6ec Compare September 20, 2026 17:34
@roderickvd
roderickvd force-pushed the fix/coreaudio-hw-sample-rate branch from 0f8d6ec to fb969a3 Compare September 20, 2026 17:36
@roderickvd
roderickvd merged commit 13c485f into master Sep 20, 2026
37 checks passed
@roderickvd
roderickvd deleted the fix/coreaudio-hw-sample-rate branch September 20, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant