[pulseaudio-tickets] [Bug 49608] periodic audio skips with Intel HDA

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Feb 3 04:42:27 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=49608

--- Comment #12 from Raymond <superquad.vortex2 at gmail.com> ---
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;

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20150203/d3dcd47b/attachment.html>


More information about the pulseaudio-bugs mailing list