<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - periodic audio skips with Intel HDA"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=49608#c12">Comment # 12</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - periodic audio skips with Intel HDA"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=49608">bug 49608</a>
              from <span class="vcard"><a class="email" href="mailto:superquad.vortex2@gmail.com" title="Raymond <superquad.vortex2@gmail.com>"> <span class="fn">Raymond</span></a>
</span></b>
        <pre>refer to src/core/Audio/AudioPulseAudio.cpp, 


                  buffer_attr.maxlength = (uint32_t)(-1);

            // play silence in case of buffer underun instead of using default
rewind
            buffer_attr.prebuf = 0;

            buffer_attr.minreq = (uint32_t)(-1);
            buffer_attr.fragsize = (uint32_t)(-1);

            double latency = (double)( Engine::mixer()->framesPerPeriod() ) /
                                                       
(double)_this->sampleRate();

                // ask PulseAudio for the desired latency (which might not be
approved)
                buffer_attr.tlength = pa_usec_to_bytes( latency *
PA_USEC_PER_MSEC,
                                                        &_this->m_sampleSpec );

            pa_stream_connect_playback( _this->m_s, NULL, &buffer_attr,
                                         PA_STREAM_ADJUST_LATENCY,
                                            NULL,    // volume
                                            NULL );
                break;</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>