[pulseaudio-commits] r2497 - /branches/coling/airtunes/src/modules/module-raop-sink.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Jun 3 16:07:50 PDT 2008


Author: coling
Date: Wed Jun  4 01:07:48 2008
New Revision: 2497

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2497&root=pulseaudio&view=rev
Log:
Fix up a couple of values related to encoding overhead.

Modified:
    branches/coling/airtunes/src/modules/module-raop-sink.c

Modified: branches/coling/airtunes/src/modules/module-raop-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/coling/airtunes/src/modules/module-raop-sink.c?rev=2497&root=pulseaudio&r1=2496&r2=2497&view=diff
==============================================================================
--- branches/coling/airtunes/src/modules/module-raop-sink.c (original)
+++ branches/coling/airtunes/src/modules/module-raop-sink.c Wed Jun  4 01:07:48 2008
@@ -317,13 +317,13 @@
                  * fully filled up. This is the best time to estimate
                  * the playback position of the server */
 
-                n = u->offset;
+                n = u->offset - u->encoding_overhead;
 
 #ifdef SIOCOUTQ
                 {
                     int l;
                     if (ioctl(u->fd, SIOCOUTQ, &l) >= 0 && l > 0)
-                        n -= l;
+                        n -= (l / u->encoding_ratio);
                 }
 #endif
 




More information about the pulseaudio-commits mailing list