diff options
-rw-r--r-- | plugins/alsa/alsa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/alsa/alsa.c b/plugins/alsa/alsa.c index 8d833fb5..e720a4cb 100644 --- a/plugins/alsa/alsa.c +++ b/plugins/alsa/alsa.c @@ -199,6 +199,7 @@ retry: for (i = 0; fmt[i] != -1; i++) { if (fmt[i] != sample_fmt && fmt_cnt[i] > plugin.fmt.bps) { if (snd_pcm_hw_params_set_format (audio, hw_params, fmt[i]) >= 0) { + fprintf (stderr, "cannot set sample format (%s), trying all supported formats\n", snd_strerror (err)); break; } } @@ -209,6 +210,7 @@ retry: for (i = 0; fmt[i] != -1; i++) { if (fmt[i] != sample_fmt && fmt_cnt[i] < plugin.fmt.bps) { if (snd_pcm_hw_params_set_format (audio, hw_params, fmt[i]) >= 0) { + fprintf (stderr, "cannot set sample format (%s), trying all supported formats\n", snd_strerror (err)); break; } } |