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. No default output device on iPod toch, QAudioOutput
QtWS25 Last Chance

No default output device on iPod toch, QAudioOutput

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 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.
  • D Offline
    D Offline
    dualfaces
    wrote on last edited by
    #1

    Hi,

    i use Qt5.2 alpha to test some audio features.
    I have a simple QT application which prints the number of available output devices by
    @QList<QAudioDeviceInfo> mList = QAudioDeviceInfo::availableDevices(QAudio::AudioOutput);
    std::cout << "there are " << mList.size() << " output devices" << std::endl@
    On Pc and MAC this runs without problems. But when i run the application on an iPod touch 5th gen (ios 7.0.2 xcode 5). it says there are 0 devices.
    What might be the problem here? I don't think that qt is not able to play sounds on ios devices.

    regards!

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dualfaces
      wrote on last edited by
      #2

      Does nobody have an idea what might be wrong?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        peter_c
        wrote on last edited by
        #3

        Hi, I had the same problem with Qt5.2 final and could not get my app or the audiooutput example to find any output devices using the QAudioOutput set of classes.

        The answer was in the end quite simple, you just need to add the following to your .pro project file:

        QTPLUGIN += qtaudio_coreaudio

        Since all iOS apps must be statically linked with the Qt libraries, plugins must also be statically linked but you need to tell Qt which plugins you want so that they can self register with the plugin system. This may be a bit late to help you dualfaces but may be useful to others anyway.

        1 Reply Last reply
        0

        • Login

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