]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix input buffer while resampling
authorPieter De Gendt <pieter.degendt@gmail.com>
Tue, 3 Dec 2019 11:14:52 +0000 (12:14 +0100)
committerPieter De Gendt <pieter.degendt@basalte.be>
Tue, 3 Dec 2019 11:17:42 +0000 (12:17 +0100)
audio_jack.c

index a8600de91192d6b231bed3d1944b24fbc08b2a45..499687a32aaeecf829ec9f10628bc573ac82bbbf 100644 (file)
@@ -433,6 +433,7 @@ int play(void *buf, int samples) {
         if (e)
           die("Error during soxr process: %s", e);
 
+        in += i_done * NPORTS; // advance our input buffer
         samples -= i_done;
         thisbuf -= o_done;
         jack_ringbuffer_write_advance(jackbuf, o_done * jack_sample_size * NPORTS);