I got some problems when using audio on WinRT. So far my code is working on Windows MSVC, MinGW, Linux, Mac, iOS, android, but not on WinRT (WinPhone will be tested next). I am using the prebuilt packages from the installer (Windows Runtime 8.1 x64 MSVC 2013), Visual Studio Community 2015, Windows 10 64bit.
My code compiles and runs successfully, but as I said there are problems with audio input/output:
- I play a sound with QMediaPlayer, but it constantly stops after some time (randomly)
- I want to play computed sine waves using QAudioOutput but there is no available audio device
- I want to record sound using QAudioInput but there is no available audio device
Do I miss some settings or is QAudioInput/QAudioOutput not supported yet?
I just created an empty project to test some stuff. The following code
QAudioDeviceInfo info = QAudioDeviceInfo::defaultInputDevice(); // Empty string as output qDebug() << "Default input device" << info.deviceName(); // 0 as output qDebug() << QAudioDeviceInfo::availableDevices(QAudio::AudioInput).size(); // 0 as output qDebug() << QAudioDeviceInfo::availableDevices(QAudio::AudioOutput).size();
prints an empty string as input device, 0 available devices on WinRT. 'multimedia' is added as Qt module.
What could be wrong? A missing plugin (dll not deployed automatically)? Or is WinRT not supported (yet)?