Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.9.1
-
None
-
-
2eef24a1d (dev), 407b6c64f (6.10), 56a16de8c (6.9), 7848db4f7 (tqtc/lts-6.8)
Description
There is strange Qt warning when trying to use QAudioSource with non-default sample rate.
IAudioClient3::GetService failed to obtain IAudioClockAdjustment "AUDCLNT_E_WRONG_ENDPOINT_TYPE"
Minimal reproducer:
#include <QCoreApplication> #include <QMediaDevices> #include <QAudioDevice> #include <QAudioFormat> #include <QAudioSource> #include <QIODevice> int main(int argc, char *argv[]) { qputenv("QT_MEDIA_BACKEND", "windows"); QCoreApplication a(argc, argv); const QAudioDevice device = QMediaDevices::defaultAudioInput(); QAudioFormat format = device.preferredFormat(); format.setSampleRate(device.minimumSampleRate()); QAudioSource audioSource(device, format); audioSource.start(); return 0; }
Here is standalone example audiosource_warning.zip
You can simply run it and check debug output.