Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    QSoundEffect and iOS (Low Latency sound format)

    Mobile and Embedded
    4
    14
    2919
    Loading More Posts
    • 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.
    • Q
      q8phantom last edited by

      Hi,

      I'm writing here to ask about the format supported by QSoundEffect and iOS (I understand it uses Core Audio plugin), I tried converting my audio to several formats with no luck, I've read Apple Documentation for Audio formats supported and I'm unable to convert to that format.

      Can anyone share a low latency audio format (Or actual audio file) that works on iOS with QSoundEffect.

      I have made some sounds work on iOS, but they work in a very low volume thus it's very difficult for my users to hear that sound.

      Appreciate your responses.
      Thank you in advance!
      Ahmed

      1 Reply Last reply Reply Quote 0
      • Q
        q8phantom last edited by

        Hello,

        I hope someone will be able to help, I would appreciate the feedback.

        Bests,
        Ahmed

        1 Reply Last reply Reply Quote 0
        • Q
          q8phantom last edited by

          Actually, What I've found at the Qt sources is the problem I guess

          https://qt.gitorious.org/qt/qtmultimedia/source/02245571bf13e29512f096d1566d6107d5a229de:src/plugins/coreaudio/coreaudiooutput.mm#L559

          Look at the function

          @
          void CoreAudioOutput::setVolume(qreal volume)
          {
          const qreal normalizedVolume = qBound(qreal(0.0), volume, qreal(1.0));
          m_cachedVolume = normalizedVolume;
          if (!m_isOpen) {
          return;
          }
          //TODO: actually set the output volume here
          //To set the output volume you need a handle to the mixer unit
          }@

          Seems that it is not done, setVolume method isn't working with QSoundEffect

          1 Reply Last reply Reply Quote 0
          • J
            j.ekman last edited by

            I recently ran into the same problem, but the problem was that coreaudio played audio through the earpiece instead of the speakers.

            It seems the default category is set to "PlayAndRecord"

            https://qt.gitorious.org/qt/qtmultimedia/source/02245571bf13e29512f096d1566d6107d5a229de:src/plugins/coreaudio/coreaudiosessionmanager.mm#L214

            Changing it to "Playback" seems to play back sounds with full volume.

            1 Reply Last reply Reply Quote 0
            • L
              lynic last edited by

              I am currently facing the same problem with the volume. How did you change the category from "PlayAndRecord" to "Playback"?

              1 Reply Last reply Reply Quote 0
              • L
                lynic last edited by

                I am currently facing the same problem with the volume. How did you change the category from "PlayAndRecord" to "Playback"?

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  Hi,

                  He changed Qt's source code and build 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 Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    Hi,

                    He changed Qt's source code and build 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 Reply Quote 0
                    • L
                      lynic last edited by

                      Thanks ;). I thought that there is maybe a way to get access to the CoreAudio* modules during development without having to recompile.

                      1 Reply Last reply Reply Quote 0
                      • L
                        lynic last edited by

                        Thanks ;). I thought that there is maybe a way to get access to the CoreAudio* modules during development without having to recompile.

                        1 Reply Last reply Reply Quote 0
                        • L
                          lynic last edited by

                          Bug report + fix: https://bugreports.qt.io/browse/QTBUG-44757

                          1 Reply Last reply Reply Quote 0
                          • L
                            lynic last edited by

                            Bug report + fix: https://bugreports.qt.io/browse/QTBUG-44757

                            1 Reply Last reply Reply Quote 0
                            • SGaist
                              SGaist Lifetime Qt Champion last edited by

                              You should send your patch for review on gerrit

                              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 Reply Quote 0
                              • SGaist
                                SGaist Lifetime Qt Champion last edited by

                                You should send your patch for review on gerrit

                                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 Reply Quote 0
                                • First post
                                  Last post