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

QAudioOutput on Android

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 2.1k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I can get QAudioInput to work on android but I can't use QAudioOutput on it. It produce the following errors. I also checked it with the official audiooutput example. The interesting part is that it talks about AudioRecord object while there's no any input object used in audiooutput example.

    I checked it on Samsung Galaxy S3 and Samsung Galaxy S2 devices. both of them produce these errors.

    The official audiooutput example output :

    @
    E/AudioRecord(30537): Could not get audio input for record source 1
    E/libOpenSLES(30537): android_audioRecorder_realize(0x5a6f9a30) error creating AudioRecord object
    W/libOpenSLES(30537): Leaving Object::Realize (SL_RESULT_CONTENT_UNSUPPORTED)
    E/AudioRecord(30537): Could not get audio input for record source 1
    E/libOpenSLES(30537): android_audioRecorder_realize(0x5a6fa1d0) error creating AudioRecord object
    @

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

      I used without any problem QAudioOutput on android since qt 5.2.0 on Galaxy S3 … and maybe I never get the error because I always add the permission for recording audio to the app.
      Did you add the permissions for recording ?

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

        Yes I added the RECORD_AUDIO permission. Also as I said I don't have any recording code in my program.

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

          Humm... I think you found a bug. File a bug report.

          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