<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - raop module does not work with shairport"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=42804#c24">Comment # 24</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - raop module does not work with shairport"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=42804">bug 42804</a>
              from <span class="vcard"><a class="email" href="mailto:pulseaudio@niafc.de" title="Matthias <pulseaudio@niafc.de>"> <span class="fn">Matthias</span></a>
</span></b>
        <pre>Hi all,

I'm in a hurry as I'm leaving for the holidays tonight.

Just wanted to share my work of the last weeks. I tried to set up a git fork of
<a href="http://repo.or.cz/w/pulseaudio-raopUDP.git/shortlog/refs/heads/raop">http://repo.or.cz/w/pulseaudio-raopUDP.git/shortlog/refs/heads/raop</a> at
<a href="http://repo.or.cz/w/pulseaudio-raopUDP/pulseaudio-raop-alac.git">http://repo.or.cz/w/pulseaudio-raopUDP/pulseaudio-raop-alac.git</a> but could not
commit my changes. Don't ask why - it's also my first time working with git.

Will try again after my vacation.

Until then, this is the state of play:

1. I wrote a simple wrapper library for Apple's C++ ALAC library. You can fetch
it from <a href="http://repo.or.cz/w/libsalac.git">http://repo.or.cz/w/libsalac.git</a>. 
It needs libalac from <a href="https://github.com/TimothyGu/alac">https://github.com/TimothyGu/alac</a>.
After the usual

%autoreconf -i -a && ./configure && make && make install

copy "libsalac.h" from "/usr/local/include/libsalac-1.0/src" to
/usr/local/include/libsalac-1.0".

2. I modified my copy of pulseaudio (see the attached patch) to use libsalac
(configure.ac and Makefile.am).

3. I used libsalac to use Apple's ALAC Encoder to encode audio packets with
ALAC. Careful: I set the initial volume to "-21" in the source. This is
obviously a workaround as the initial volume was not set correctly and audio
was played near mute.

4. As a result, I am now able to play music via pulseaudio to my Minx Air 200.
There are glitches every second (I suspect the sync packets are not quite
right).

Please give it a try.

I also started to implement a packet buffer for resending. I will commit that
when it reaches a stable state.</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>