<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - Pulse audio NOT USED multithreading"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90210#c17">Comment # 17</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - Pulse audio NOT USED multithreading"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90210">bug 90210</a>
              from <span class="vcard"><a class="email" href="mailto:tanuk@iki.fi" title="Tanu Kaskinen <tanuk@iki.fi>"> <span class="fn">Tanu Kaskinen</span></a>
</span></b>
        <pre>(In reply to Alessandro Ferri from <a href="show_bug.cgi?id=90210#c15">comment #15</a>)
<span class="quote">> Thanks Tanu,
> You've given a lot of information I did not know. At this point, before
> doing the tests that you suggested on-resample method = speex-float-1 or
> resample-method = ffmpeg, I must build pulseaudio 5.0 again. So first I see
> if these issues disappear. I want to ask if I have to first uninstall the
> previous installation from source, and if so how, or simply just build a new
> one and install it.</span >

You don't have to uninstall it. If you uninstall it, there will be "No such
file or directory" errors if something tries to run /usr/bin/pulseaudio. That
may be better than less obvious errors about linking failures or just crashes
if you don't uninstall, and something tries to run /usr/bin/pulseaudio.

How to uninstall: run "sudo make uninstall". That has to be done after you've
run configure with the same parameters that you used when you originally ran
"sudo make install".

<span class="quote">> In the latter case the procedure, from what you told me
> is:

> sudo apt-get install libspeex-dev
> or
> sudo apt-get install libspeex-dev:armhf
> what is the difference? I use raspberry Pi2.</span >

"libspeex-dev" is the version that matches your machine's primary architecture,
and "libspeex-dev:armhf" is a version for the armhf architecture. If your
machine's primary architecture is armhf, there's no difference. "dpkg
--print-architecture" will show the primary architecture. In any case,
installing "libspeex-dev" should do the right thing.

<span class="quote">> after

> cd pulseaudio-5.0
> ./configure --sysconfdir=/etc --localstatedir=/var --disable-bluez4
> make
> sudo make install

> and at the end

> sudo ldconfig

> I am attaching the init script with which I run pulseaudio as system mode.</span >

The script has DAEMON=/usr/bin/pulseaudio, which needs to be changed to
DAEMON=/usr/local/bin/pulseaudio.

<span class="quote">> I also wanted to ask further explanation. I use shairport-sync as Airplay
> emulator. The audio output of shairport-sync is fixed on pulse.
> In this way I lose synchronization between Airplay devices and my raspberry.
> So I wanted to ask you:

> 1) Is there a way to run only pulseaudio as an Airplay emulator, eliminating
> shairport-sync?</span >

No.

<span class="quote">> 2) Otherwise is there a way instead, working on the parameters of
> pulseaudio, to maintain synchronization and eliminate the latency of the
> audio output?</span >

Are you talking about audio-video sync in video playback? Is shairport-sync
also the component that displays video? If it is, then shairport-sync should
already get enough information from PulseAudio about the audio delay, and based
on that shairport-sync should be able to sync audio and video. If it doesn't,
that's a bug in shairport-sync.</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>