-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.9.3, 6.10.0
-
None
-
iMac, Retina 4k, 21.5-inch 2019
3 Ghz, 6-core Intel Core i5
Radeon Pro 560X 4 GB
macOS 13.7.8 and 14.8.1
-
-
f3bfdb1c9 (dev), 474a7398d (6.10)
-
QtMM w44 - ....
Invalid preferredFormat is returned for iMac's built-in audio device, see
Environment section for full device specification.
It seems doesn't depend on macOS version, reproduced on macOS 13.7.8 and 14.8.1 (tested on 2 machines with the same HW)
I.e. it triggers an assertion in the next code, and any related functionality, e.g. QAudioSource::start() also does not work, when using a built-in device.
const auto device = QMediaDevices::defaultAudioInput();
const auto format = device.preferredFormat();
Q_ASSERT(format.isValid());
After some debugging, it was discovered that the root cause for the problem is that the sampleFormat parameter has the Unknown value for some reason.
So, "preferred" format looks like:
sampleRate = 44100, sampleFormat = Unknown, channelCount = 2
- relates to
-
QTBUG-99497 Support for 24-bit audio in Qt6
-
- Reported
-