diff options
author | waker <waker@titty.(none)> | 2010-01-06 21:24:05 +0100 |
---|---|---|
committer | waker <waker@titty.(none)> | 2010-01-06 21:24:05 +0100 |
commit | 39df98eb9b46055282cda9fc8accb7167c131367 (patch) | |
tree | 56d594dfecce36e7834fd54f6e51ea19bfcde310 /plugins/alsa | |
parent | 7e95aeb4ff7637fa6a187f77c3dc134a523e498a (diff) |
alsa bigendian fix
Diffstat (limited to 'plugins/alsa')
-rw-r--r-- | plugins/alsa/alsa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/alsa/alsa.c b/plugins/alsa/alsa.c index cae6e7c8..a6fd1b77 100644 --- a/plugins/alsa/alsa.c +++ b/plugins/alsa/alsa.c @@ -21,6 +21,7 @@ #include <unistd.h> #include <sys/prctl.h> #include "deadbeef.h" +#include "../../config.h" #define trace(...) { fprintf(stderr, __VA_ARGS__); } //#define trace(fmt,...) @@ -475,7 +476,7 @@ palsa_thread (void *context) { char buf[frames_to_deliver*4]; palsa_callback (buf, frames_to_deliver*4); if ((err = snd_pcm_writei (audio, buf, frames_to_deliver)) < 0) { - trace ("write %d frames failed (%s)\n", frames_to_deliver, snd_strerror (err)); + trace ("write %d frames failed (%s)\n", (int)frames_to_deliver, snd_strerror (err)); snd_pcm_prepare (audio); snd_pcm_start (audio); } |