Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-43256

Too small buffer size for audio output on ALSA

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.3.2
    • Fix Version/s: 5.12.9, 5.14.0 RC1
    • Component/s: Multimedia
    • Labels:
      None
    • Environment:
      Cubieboard 2 (sunxi), Debian
    • Commits:
      8b92454d6fffcee7a8cf1fb5e0c92920c77733c8 (qt/qtmultimedia/5.13) 61a6a09429cf8c34a356748a3bb76fc7868a54b1 (qt/qtmultimedia/5.12)

      Description

      Message:
      ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred

      Code should have more koefficients (2, 4, 6, 8, 10, ...) (8 for cubieboard2)

      qtmultimedia/src/plugins/alsa/qalsaaudiooutput.cpp:440
      
                      if (period_time*4 <= maxBufferTime) {
                          // Use 4 periods if possible
                          buffer_time = period_time*4;
                          chunks = 4;
                      } else if (period_time*2 <= maxBufferTime) {
                          // Use 2 periods if possible
                          buffer_time = period_time*2;
                          chunks = 2;
                      } else {
                          qWarning()<<"QAudioOutput: alsa only supports single period!";
                          fatal = true;
                      }
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            valentyn.doroshchuk Valentyn Doroshchuk
            Reporter:
            lom2k Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes