foopydog wrote: > > I would like to know: is this the *actual* solution? > > Using a larger buffer would cure certain problems, such as overrunning > the boundary of the struct from malloc. But it might also only side-step > the problem, only to re-emerge later on, because the problem is > somewhere else. Only by reproducing and testing can we be sure, although > I understand that @ralphy has not been able to reproduce the issue yet. > Maybe those other forum postings will provide some further clues on how > to verify the fix. > > If this actually does cure the problem, then setting a new default > buffer size will put this problem to rest.
Default stream buffer size is 2 MiB. One post mentions -b 655360:1310720, which is about 1.8 GiB total buffer size (stream+output). I'm tempted to assume *that* is not the solution if squeezelite as a core component is supposed to run on small sytems. What you get with a big stream buffer is that the whole mp3 file is read in one fell swoop. That might just mask the problem. What about folks that listen to classical music. Those files can be fairly large. Moreover, the problem seems not only related to the buffer size but also specific to mp3 files. I have not noticed dropouts when playing flac files. I'm testing with -b 256 which results in a 256 kiB stream buffer size since its multiplied internally by 1024. The files I'm testing with are about 6 MB in size. So there should be plenty of wrapping around in the stream buffer. Wrapping around does not seam to be a problem with flac data. Is there anything special when wrapping around mp3 data? Looking at the code I don't think so. The dropouts are really fickle. E.g. when I'm testing I'm reading stderr programmatically and writing to a memory buffer. I can make the dropouts disappear when I put a small delay in the logging function. So it's seems contingent on the internal timing within squeezelite. Different cpu frequencies, different cache sizes etc. can thus make the dropouts appear or disappear. ------------------------------------------------------------------------ fpo's Profile: http://forums.slimdevices.com/member.php?userid=71212 View this thread: http://forums.slimdevices.com/showthread.php?t=113554 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
