summaryrefslogtreecommitdiff
path: root/plugins/alsa
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-27 16:06:57 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-27 16:06:57 +0100
commit1522d68ba866d47e0d9c12bc4df28d7e71407705 (patch)
tree18a82f08a0ae55445feb8849cd554096a3c106f2 /plugins/alsa
parent94dd735f3c45b43ca00eaba4f22ef8440259e142 (diff)
fixed a bunch of minor compiler warnings and alsa hang on exit
Diffstat (limited to 'plugins/alsa')
-rw-r--r--plugins/alsa/alsa.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/alsa/alsa.c b/plugins/alsa/alsa.c
index 23470765..22c3e9b3 100644
--- a/plugins/alsa/alsa.c
+++ b/plugins/alsa/alsa.c
@@ -165,7 +165,7 @@ palsa_set_hw_params (int samplerate) {
trace ("Unable to get buffer size for playback: %s\n", snd_strerror(err));
goto error;
}
- trace ("alsa buffer size: %d frames\n", size);
+ trace ("alsa buffer size: %d frames\n", (int)size);
bufsize = size;
if ((err = snd_pcm_hw_params (audio, hw_params)) < 0) {
@@ -227,7 +227,7 @@ palsa_init (void) {
snd_strerror (err));
goto open_error;
}
- trace ("alsa period size: %d frames\n", av);
+ trace ("alsa period size: %d frames\n", (int)av);
if ((err = snd_pcm_sw_params_set_start_threshold (audio, sw_params, 0U)) < 0) {
trace ("cannot set start mode (%s)\n",
@@ -299,6 +299,7 @@ palsa_free (void) {
trace ("palsa_free\n");
if (audio && !alsa_terminate) {
alsa_terminate = 1;
+ printf ("waiting for alsa thread to finish\n");
deadbeef->thread_join (alsa_tid);
alsa_tid = 0;
snd_pcm_close(audio);