chiark / gitweb /
target_rtp_time had better be even for stereo
authorrjk@greenend.org.uk <>
Mon, 24 Sep 2007 14:11:34 +0000 (15:11 +0100)
committerrjk@greenend.org.uk <>
Mon, 24 Sep 2007 14:11:34 +0000 (15:11 +0100)
server/speaker.c

index 4bb1d2c..aebd930 100644 (file)
@@ -974,6 +974,7 @@ static size_t network_play(size_t frames) {
      * transmitting packets with overlapping timestamp ranges, which does not
      * make sense.
      */
+    target_rtp_time &= ~(uint64_t)1;    /* stereo! */
     if(target_rtp_time > rtp_time) {
       /* More time has elapsed than we've transmitted samples.  That implies
        * we've been 'sending' silence.  */