diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-10-25 14:34:49 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-10-25 14:34:49 +0100 |
commit | b49163ef6771d7259235a66312e0b1cfdaae46a4 (patch) | |
tree | 854ff831c36e42a71f21c0c05439c4741d640e91 /streamer.c | |
parent | 4d658d0d891c96e20b3a6409b556a62d2199e367 (diff) |
added alsa.freeonstop option support, which frees alsa device when playback is stopped
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |