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. QAudioOutput to speaker on iOS
Forum Updated to NodeBB v4.3 + New Features

QAudioOutput to speaker on iOS

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 2 Posters 1.8k Views 1 Watching
  • 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
    dbutter
    wrote on 12 Jun 2017, 04:41 last edited by
    #1

    Hi,

    I am developing an app using qt for ios and I want to be able to play audio to the speaker on the iphone. I am using QAudioOutput, and while it works I only hear audio from the ear-piece. When I use QAudioDeviceInfo::availableDevices(QAudio::AudioOutput) I only get the 'default' device, nothing else.

    Is there some additional step I need to take to select the speaker on iOS? Does Qt support any such controls?

    Thanks!
    Regards, Devin

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Jun 2017, 21:54 last edited by
      #2

      Hi and welcome to devnet,

      Something is not clear, do you mean you can only hear the sound when you plug your headphones ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dbutter
        wrote on 7 Jul 2017, 17:17 last edited by
        #3

        Hi,

        Thanks for responding.

        The Apple iPhone 6+ has an earpiece and a speaker. The speaker is at the bottom and used by apps when they want to play audio to user without headphones (like watching video, etc.).

        It seems I only have the ability to play audio out of the earpiece using Qt. Is this a known issue?

        --
        Regards, Devin

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dbutter
          wrote on 7 Jul 2017, 20:42 last edited by
          #4

          To clarify further, the "earpiece" is the small quiet speaker in the top of the phone that you press against your ear while talking on a phone call. The "speaker" is used for speaker-phone, playing music and video, etc. It is loud enough for these applications. The iphone's "earpiece" is only loud enough for phone-to-ear listening.

          Qt seems to not be able to access the speaker.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 8 Jul 2017, 21:51 last edited by
            #5

            Which version of iOS is it ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dbutter
              wrote on 11 Jul 2017, 02:52 last edited by
              #6

              Hi,

              I am testing with version iOS 10.3.2.

              Thanks, Devin

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 11 Jul 2017, 20:08 last edited by
                #7

                I might be wrong, but from a quick look at the iOS Audio Programming Guide, I don't think you can select the output to which the sound should go programmatically.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                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