summaryrefslogtreecommitdiff
path: root/plugins/alsa
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-22 18:35:03 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-22 18:35:03 +0200
commit30dd600a369c0d0735361c9f277586dd95a461e9 (patch)
treef3e413d37108c5e8a139c00ce7dab538bc459b96 /plugins/alsa
parent926a909d926652a610a1e4cf313cb7018e0b69b9 (diff)
added more error reporting to alsa
Diffstat (limited to 'plugins/alsa')
-rw-r--r--plugins/alsa/alsa.c2
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;
}
}