From be7dcb67c79735041647b4004501782c706d9e10 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 10 Sep 2024 08:30:57 +0200 Subject: [PATCH] aplay/alsa: print req val if buff fails to set --- src/audio/playback/alsa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/audio/playback/alsa.c b/src/audio/playback/alsa.c index efceaf0c7..313ae484d 100644 --- a/src/audio/playback/alsa.c +++ b/src/audio/playback/alsa.c @@ -477,8 +477,9 @@ set_device_buffer(snd_pcm_t *handle, playback_mode_t playback_mode, const int rc = snd_pcm_hw_params_set_buffer_time_near( handle, params, &buf_len_us, &buf_dir); if (rc < 0) { - MSG(WARNING, "Warning - unable to set buffer to its size: %s\n", - snd_strerror(rc)); + MSG(WARNING, + "Warning - unable to set buffer to its size %u us: %s\n", + buf_len_us, snd_strerror(rc)); } MSG(INFO, "ALSA driver buffer len set to: %lf ms\n", US_TO_MS((double) buf_len_us));