Skip to content

Read audio input formats from the macOS instead of Qt - #1737

Merged
Mysticial merged 1 commit into
mainfrom
mirabox-audio-native-formats
Oct 31, 2026
Merged

Mysticial merged 1 commit into
mainfrom
mirabox-audio-native-formats

Conversation

@Gin890

@Gin890 Gin890 commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Qt 6.10 reports every sample rate up to 192 kHz as supported for every audio device on macOS. Since #1711 the input format list trusts Qt's report of supported audio format, on macOS a Mirabox lists all possible audio sample rates.

This PR uses macOS native audio lib CoreAudio to query supported audio formats while keeps the same method on Windows and Linux

@Gin890 Gin890 changed the title Read audio input formats from the OS instead of Qt Read audio input formats from the macOS instead of Qt Oct 27, 2026
@Gin890
Gin890 force-pushed the mirabox-audio-native-formats branch 3 times, most recently from e2ec15c to d3d759b Compare October 31, 2026 03:25
@Gin890
Gin890 marked this pull request as ready for review October 31, 2026 03:25
@Gin890
Gin890 requested review from Mysticial and pa-devbot and removed request for pa-devbot October 31, 2026 03:26
Qt 6.10 reports every sample rate up to 192 kHz as supported for every
audio device. The input format list trusts that, so on macOS a MiraBox
defaults to 1ch x 192 kHz, where Qt's macOS audio input delivers no data
at all. #1758 brought back the Interleaved Stereo choices, but the silent
192 kHz choice still wins the default.

Build the list from the formats the hardware runs in: CoreAudio's
physical formats on macOS, the OS device format on Windows and Linux.
Keep the device's own sample format and default a MiraBox to R/L.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gin890
Gin890 force-pushed the mirabox-audio-native-formats branch from d3d759b to 6762bca Compare October 31, 2026 03:36
@Mysticial
Mysticial merged commit 18f337b into main Oct 31, 2026
7 checks passed
@Mysticial
Mysticial deleted the mirabox-audio-native-formats branch October 31, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants