Skip to content

Commit

Permalink
aplay/alsa: print req val if buff fails to set
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Sep 10, 2024
1 parent 52ed2fd commit be7dcb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/audio/playback/alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit be7dcb6

Please sign in to comment.