((present_time > most_recent_write_time) &&
((present_time - most_recent_write_time) > (sleep_time_in_fp)))) {
reply = delay(&buffer_size);
- if (reply != 0)
- buffer_size = 0;
+ if (reply != 0) {
+ buffer_size = 0;
+ char errorstring[1024];
+ strerror_r(-reply, (char *)errorstring, sizeof(errorstring));
+ debug(1, "alsa: alsa_buffer_monitor_thread_code delay error %d: \"%s\".",
+ reply, (char *)errorstring);
+ }
if (buffer_size < frames_of_silence) {
if ((hardware_mixer == 0) && (config.ignore_volume_control == 0) &&
(config.airplay_volume != 0.0))
// this might happen if a big clock adjustment was made at just the wrong
// time.
- debug(1, "Run a bit past the exact start time by %" PRId64 " frames.",
- -exact_frame_gap);
+ debug(1, "Run a bit past the exact start time by %" PRId64 " frames with a DAC delay of %ld frames.",
+ -exact_frame_gap, dac_delay);
if (config.output->flush)
config.output->flush();
ab_resync(conn);