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 audio devices available on Android !!

No audio devices available on Android !!

Scheduled Pinned Locked Moved Mobile and Embedded
24 Posts 9 Posters 10.6k 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.
  • GianlucaG Offline
    GianlucaG Offline
    Gianluca
    wrote on last edited by
    #1

    Dear all,
    I did some tests with audio on android platform with Qt 5 beta 1.
    All tests failed because the availableDevices return nothing. It seems that the tablet does not have any input or output audio devices, and of course it's not true !! The tablet has both input and output devices working correctly with others apps.

    What happens ?? Qt 5 multimedia is not yet ported to android platform ?? I read on the blog that there is support for multimedia... so, I should use it ??
    I tryed all audio examples and none of them work on android.
    :-( :-(
    Some advice ??

    Thanks,
    Gianluca.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AlterX
      wrote on last edited by
      #2

      Same problem on Qt 5.1 final release!

      Qt Ambassador
      Real-time cooperative teams: http://www.softairrealfight.net
      Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

      https://codereview.qt-project.org/...

      1 Reply Last reply
      0
      • GianlucaG Offline
        GianlucaG Offline
        Gianluca
        wrote on last edited by
        #3

        Shall we file a bug ??
        How can we do that ??
        I don't know how to start the process of submitting a bug.
        Do you know ??

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AlterX
          wrote on last edited by
          #4

          I did some days ago!

          "here":https://bugreports.qt-project.org/browse/QTBUG-32119

          Qt Ambassador
          Real-time cooperative teams: http://www.softairrealfight.net
          Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

          https://codereview.qt-project.org/...

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            [quote author="AlterX" date="1372928950"]I did some days ago!

            "here":https://bugreports.qt-project.org/browse/QTBUG-32119[/quote]

            You may want to update JIRA with comment then.

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AlterX
              wrote on last edited by
              #6

              I don't know...I think they already know

              Qt Ambassador
              Real-time cooperative teams: http://www.softairrealfight.net
              Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

              https://codereview.qt-project.org/...

              1 Reply Last reply
              0
              • K Offline
                K Offline
                koahnig
                wrote on last edited by
                #7

                [quote author="AlterX" date="1372929770"]I don't know...I think they already know[/quote]
                They may already know. However, sometimes a short statement helps those guys. It helps also others.

                Vote the answer(s) that helped you to solve your issue(s)

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  AlterX
                  wrote on last edited by
                  #8

                  Ok, yes I've done again...anyway there are several threads on android audio issue.

                  Qt Ambassador
                  Real-time cooperative teams: http://www.softairrealfight.net
                  Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                  https://codereview.qt-project.org/...

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    alessand01
                    wrote on last edited by
                    #9

                    Damn! I get this in the application output when I try to create a QAudioRecorder:

                    "audiocapturesession.cpp:159 (bool AudioCaptureSession::setFormat(const QAudioFormat&)): failed to setFormat using preferred.."

                    -- Do you get this? --

                    and then, trying to 'enumerate' input devices I get an empty list...

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      AlterX
                      wrote on last edited by
                      #10

                      I don't know...I think we need to wait until Qt android goes out the tech preview :(

                      Qt Ambassador
                      Real-time cooperative teams: http://www.softairrealfight.net
                      Free Real-time network platform sdk: https://github.com/AlterX76/Solomon

                      https://codereview.qt-project.org/...

                      1 Reply Last reply
                      0
                      • GianlucaG Offline
                        GianlucaG Offline
                        Gianluca
                        wrote on last edited by
                        #11

                        Dear all,
                        definitely there is not multimedia support yet !! :-(
                        And they are not going to implement it until the Qt 5.2

                        I found a way to bypass the problem and use the audio devices, but it requires to implement a middle layer to access the underlying android java API and iOS API.
                        For accessing the iOS API it's very easy because objective-c allow to mix C/C++ with objective-c. For android, it's a bit more complicated because you must use the JNI (that are very confusing for me).

                        There are some topics on how to do access underlying API:
                        http://community.kde.org/Necessitas/JNI
                        http://qt-project.org/forums/viewthread/28774/

                        For now, it's the only way to play and to record audio from mobile devices with Qt 5.

                        Cheers,
                        Gianluca.

                        1 Reply Last reply
                        0
                        • GianlucaG Offline
                          GianlucaG Offline
                          Gianluca
                          wrote on last edited by
                          #12

                          Hello everyone,
                          the Qt 5.2 alpha is out... I didn't tried yet, so I don't know if they implemented the AudioInput and AudioOutput.
                          Do someone in this thread tried the AudioInput/Output with Qt 5.2 alpha ??
                          The problem above has been resolved ??

                          Cheers,
                          Gianluca.

                          1 Reply Last reply
                          0
                          • ? Offline
                            ? Offline
                            A Former User
                            wrote on last edited by
                            #13

                            We need to wait for Qt 5.2 official release to get the Multimedia support for Android devices.

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              muaddib
                              wrote on last edited by
                              #14

                              I have tried the 5.2 beta released today, but I still get no devices. Should it have been supported in the beta or do we have to wait for the final release?

                              Andreas

                              1 Reply Last reply
                              0
                              • GianlucaG Offline
                                GianlucaG Offline
                                Gianluca
                                wrote on last edited by
                                #15

                                :-( that's a really bad news !!
                                I cannot understand why there is still this problem.
                                In the page of the 5.2 features it is clearly stated that the low-latency audio was added.
                                http://qt-project.org/wiki/New-Features-in-Qt-5.2
                                At that page, near the bottom, there is the section with Android and iOS where it is been declared that the audio was supported.

                                So, again, my question is: "What they mean for supporting low-latency audio if there is no possibility to use because we still get no devices ??"
                                Please, can someone involved into the Qt development answer to this question, and how they tested audio features on android and iOS without any devices available ??

                                1 Reply Last reply
                                0
                                • P Offline
                                  P Offline
                                  Pierrot
                                  wrote on last edited by
                                  #16

                                  Hello,
                                  same problem for me (Windows 7 + Qt5.2 Beta + Android deployment on several different devices). Question for muaddib and Gianluca: what environment do you use (Linux/Windows/Mac) ? Could this bug be related to QTBUG-34275 ?
                                  Maybe the problem does not occur on Linux/Mac ?
                                  A simple way to show the problem is to compile the 'examples/multimedia/audiooutput' project. It works fine when compiled on desktop (audio devices appear in the QComboBox), but not on Android device.

                                  1 Reply Last reply
                                  0
                                  • GianlucaG Offline
                                    GianlucaG Offline
                                    Gianluca
                                    wrote on last edited by
                                    #17

                                    On Linux and Mac I cannot even build and run the audiooutput example :-(

                                    On Mac, it seems that iOS lacks completly the multimedia module :-(
                                    On Linux, it comply that it did not find Qt5Quick.so library ... but the audiooutput it is not a Quick application :-(

                                    1 Reply Last reply
                                    0
                                    • GianlucaG Offline
                                      GianlucaG Offline
                                      Gianluca
                                      wrote on last edited by
                                      #18

                                      Some news !
                                      After struggling a bit for compile the audioinput and audiooutput on linux for android ... I successful run the two example and they found various input/output devices.

                                      So, it seems that Audio Input and Output works on Android if the app has been built from a linux machine.

                                      1 Reply Last reply
                                      0
                                      • M Offline
                                        M Offline
                                        muaddib
                                        wrote on last edited by
                                        #19

                                        I am on windows 7 as well and deploying on a Nexus 4. The bug looks relevant, but I couldn't find any references to opensles in any of the logs when building or deploying.

                                        1 Reply Last reply
                                        0
                                        • L Offline
                                          L Offline
                                          leo chen
                                          wrote on last edited by
                                          #20

                                          hello,I come across the same issue ,how to deal with? i am on win32.

                                          [quote author="Gianluca" date="1382634372"]Some news !
                                          After struggling a bit for compile the audioinput and audiooutput on linux for android ... I successful run the two example and they found various input/output devices.

                                          So, it seems that Audio Input and Output works on Android if the app has been built from a linux machine.
                                          [/quote]

                                          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