summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-10-25 14:34:49 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-10-25 14:34:49 +0100
commitb49163ef6771d7259235a66312e0b1cfdaae46a4 (patch)
tree854ff831c36e42a71f21c0c05439c4741d640e91 /streamer.c
parent4d658d0d891c96e20b3a6409b556a62d2199e367 (diff)
added alsa.freeonstop option support, which frees alsa device when playback is stopped
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/streamer.c b/streamer.c
index ec6c7f6c..74b4104a 100644
--- a/streamer.c
+++ b/streamer.c
@@ -35,6 +35,9 @@
#include "optmath.h"
#include "volume.h"
+//#define trace(...) { fprintf(stderr, __VA_ARGS__); }
+#define trace(fmt,...)
+
static intptr_t streamer_tid;
static SRC_STATE *src;
static SRC_DATA srcdata;
@@ -81,9 +84,6 @@ playItem_t str_streaming_song;
static playItem_t *orig_playing_song;
static playItem_t *orig_streaming_song;
-//#define trace(...) { fprintf(stderr, __VA_ARGS__); }
-#define trace(fmt,...)
-
// playlist must call that whenever item was removed
void
streamer_song_removed_notify (playItem_t *it) {
@@ -120,7 +120,7 @@ streamer_set_current (playItem_t *it) {
}
if (it->decoder) {
int ret = it->decoder->init (DB_PLAYITEM (it));
- trace ("input samplerate: %d\n", it->decoder->info.samplerate);
+// trace ("input samplerate: %d\n", it->decoder->info.samplerate);
pl_item_copy (&str_streaming_song, it);
if (ret < 0) {
trace ("decoder->init returned %d\n", ret);