Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. WinRT QMediaPlayer/QAudioInput/QAudioOutput
Forum Update on Monday, May 27th 2025

WinRT QMediaPlayer/QAudioInput/QAudioOutput

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qaudiooutputqaudioinputwindows rtqmediaplayer64bit
2 Posts 1 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Wickie
    wrote on 19 Dec 2015, 11:49 last edited by
    #1

    Hi,

    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?

    Thanks!
    Wickie

    1 Reply Last reply
    0
    • W Offline
      W Offline
      Wickie
      wrote on 26 Dec 2015, 01:10 last edited by
      #2

      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)?

      Best
      Wickie

      1 Reply Last reply
      0

      1/2

      19 Dec 2015, 11:49

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved