Triode,

I've spent a couple of hours this afternoon, seemingly chasing rainbows,
trying to track down why the total number of samples coming out of the
resample process (per track) did not equal the exact multiple of the
input * oversampling ratio.... Something cranky is going on after a
period of time, using the same resample process. (And yes, I took into
account that some data from the old track might be left in the sox
resample buffer, with a new track at the same sample rate, so was
draining it before working out the numbers.) You might not like what
I've done in the patch, creating a new resample process per track, and
spoiling your code, but all my numbers work out......

In any case, in decode loop drain() has to be called. Otherwise, last
track in playlist will not be drained to out buf if anything is left in
sox decode buffer, without any new input.


+-------------------------------------------------------------------+
|Filename: squeezelite-resample.patch                               |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=14906|
+-------------------------------------------------------------------+

------------------------------------------------------------------------
JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=98544

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to