--- a/sc2src/sc2mpd.cpp
+++ b/sc2src/sc2mpd.cpp
@@ -487,6 +487,11 @@
"http stream");
parser.AddOption(&optionDevice);
+ OptionBool optionWatcher("-W", "--watcher",
+ "[watcher] Start a watcher thread"
+ "(needs --direct-alsa)");
+ parser.AddOption(&optionWatcher);
+
#ifdef WITH_WAVSC2
OptionString optionWav("-w", "--wav somefile.wav", Brn(""),
"Test audio with wav file instead of sender");
@@ -585,7 +590,7 @@
}
}
} else {
- if (optionDevice.Value()) {
+ if (optionWatcher.Value()) {
startWatcher(config);
}
receiver->Play(uri);