Package list squeezelite / 06da65c
fix gapless playback for portaudio update changelog Adrian Smith 7 years ago
2 changed file(s) with 17 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
6363 - bug fixes for dsf playback, for status progress on windows using wdm-ks output, and to avoid 100% cpu
6464 - change some logging levels for slimproto to aid readability
6565
66 Version 1.6
67 ===========
68
69 Minor changes
70 - add support for direct file playback on windows
71 - add configurable delay for switch between pcm sample rates
72 - support build on freebsd
73 - fix gapless playback on portaudio builds
74 - fix gapless playback for mp3 localfile case with tags at start of file
351351
352352 output.updated = gettime_ms();
353353
354 frames = _output_frames(pa_frames_wanted);
355
356 if (frames < pa_frames_wanted) {
357 LOG_SDEBUG("pad with silence");
358 memset(optr, 0, (pa_frames_wanted - frames) * BYTES_PER_FRAME);
354 do {
355 frames = _output_frames(pa_frames_wanted);
356 pa_frames_wanted -= frames;
357 } while (pa_frames_wanted > 0 && frames != 0);
358
359 if (pa_frames_wanted > 0) {
360 LOG_DEBUG("pad with silence");
361 memset(optr, 0, pa_frames_wanted * BYTES_PER_FRAME);
359362 }
360363
361364 if (output.state == OUTPUT_OFF) {