<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - SAP announcements contain wrong information"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=62636">62636</a>
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>SAP announcements contain wrong information
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>wrsmith@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>modules
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=76905" name="attach_76905" title="python script to listen to SAP announcements from PulseAudio.">attachment 76905</a> <a href="attachment.cgi?id=76905&action=edit" title="python script to listen to SAP announcements from PulseAudio.">[details]</a></span>
python script to listen to SAP announcements from PulseAudio.

I set up two Ubuntu machines, both with PulseAudio. 

In one machine (Ubuntu 12.04), I set it up to act as a network audio device. In
the other machine (Ubuntu 12.10), I set it up to use the network audio device.

I took a tcpdump of the traffic going between the two computers. I extracted
the PCM audio. I was unable to play it with the parameters from the SAP
announcement, which are as follows. The garbled characters were also there in
the announcement. I captured the SAP announcement using a small python script
(attached).

 u]
�kapplication/sdpv=0
o=william 3572777767 0 IN IP4 192.168.1.23
s=PulseAudio RTP Stream on william-X101CH
c=IN IP4 224.0.0.56
t=3572777767 0
a=recvonly
m=audio 46194 RTP/AVP 10
a=rtpmap:10 L16/44100/2
a=type:broadcast

When I played back the audio I extracted from the tcpdump, I was able to play
it like this. As you can see, the parameters are quite different from the SAP
announcements.

aplay -t raw -c 2 -f S32_LE -r 44100 myrawaudio.dat

(The parameters from the SAP announcement just caused it to play white noise.)</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>