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

Too small buffer size for audio output on ALSA

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.9, 5.14.0 RC1
    • 5.3.2
    • Multimedia
    • None
    • Cubieboard 2 (sunxi), Debian
    • 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

        For Gerrit Dashboard: QTBUG-43256
        # Subject Branch Project Status CR V

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            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