summaryrefslogtreecommitdiff
path: root/plugins/alsa
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-04 19:45:35 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-04 19:45:35 +0200
commitf31784859de08fc05b8a744e7fe8d713693734b9 (patch)
tree2a308acb3c6530f05a5c0b30ffabc30fbd1abe55 /plugins/alsa
parent9ca2a9c5ceaabb9f5db53ae85ab1179dbd6e4d2b (diff)
fixed lots of gcc warnings
Diffstat (limited to 'plugins/alsa')
-rw-r--r--plugins/alsa/alsa.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/alsa/alsa.c b/plugins/alsa/alsa.c
index 74078fad..2a2867b3 100644
--- a/plugins/alsa/alsa.c
+++ b/plugins/alsa/alsa.c
@@ -190,12 +190,12 @@ palsa_set_hw_params (int samplerate) {
req_period_size = deadbeef->conf_get_int ("alsa.period", DEFAULT_PERIOD_SIZE);
buffer_size = req_buffer_size;
period_size = req_period_size;
- trace ("trying buffer size: %d frames\n", buffer_size);
- trace ("trying period size: %d frames\n", period_size);
+ trace ("trying buffer size: %d frames\n", (int)buffer_size);
+ trace ("trying period size: %d frames\n", (int)period_size);
snd_pcm_hw_params_set_buffer_size_near (audio, hw_params, &buffer_size);
snd_pcm_hw_params_set_period_size_near (audio, hw_params, &period_size, NULL);
- trace ("alsa buffer size: %d frames\n", buffer_size);
- trace ("alsa period size: %d frames\n", period_size);
+ trace ("alsa buffer size: %d frames\n", (int)buffer_size);
+ trace ("alsa period size: %d frames\n", (int)period_size);
if ((err = snd_pcm_hw_params (audio, hw_params)) < 0) {
trace ("cannot set parameters (%s)\n",
@@ -316,7 +316,7 @@ palsa_change_rate (int rate) {
return alsa_rate;
}
if (rate == alsa_rate) {
- trace ("palsa_change_rate: ignored\n", rate);
+ trace ("palsa_change_rate %d: ignored\n", rate);
return rate;
}
state = OUTPUT_STATE_STOPPED;