Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QAudioOutput latency problem
QtWS25 Last Chance

QAudioOutput latency problem

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 909 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    hi

    At first I can't use QAudioOutput with ALSA support in Qt 5.1.1 . It returns this error at runtime: "Unable to create a connection to the pulseaudio context". It seems that this version doesn't support ALSA.

    So I had to use Qt 4.7.4 . Everything works great with that, just there's a problem. Latency is more than 1 second. The buffersize of audiooutput is 1364. It doesn't change with setBufferSize. Also I checked the len parameter in QIODevice::readData function, It requests 16384 which causes a high latency.
    Please let me know if I didn't notice any important thing.

    Thanks in advanced.

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

      Any idea?

      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