Begin to support a settings file -- not working yet.

This commit is contained in:
Mike Brady
2015-04-06 13:52:13 +01:00
parent 17b90b8f8a
commit 4ec9fd5b9b
4 changed files with 86 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
// Sample Configuration File for Shairport Sync
// General Settings
general =
{
// name = "Music Player"; // default is "Shairport Sync on <hostname>"
// daemonize = no;
// mdns_backend = avahi; // not used, not tested
// output_backend = alsa; // setting is not used, alsa is default
// port = 5000;
// password = "secret"; // default is no password needed
// interpolation = basic; // aka "stuffing". Default is basic, alternative is soxr
// statistics = no; // print statistics in the log
// tolerance = 88; // allow this number of frames of drift before correcting it
// resync_threshold = 2205; a synchronisation error greater than this will cause resynchronisation
// log_verbosity = 0; // "0" means no verbosity, "3" is highest.
};
latency =
{
// default = 88200;
// itunes = 99400;
// airplay = 88200;
// forkedDaapd = 99400;
};
metadata =
{
// metadata_feed_enabled = no;
// include_cover_art = no;
// metadata_pipe = "/tmp/shairport-sync-coverart";
};
sessioncontrol =
{
// run_before_play_begins = "/path/to/application";
// run_after_play_ends = "/path/to/application";
// wait_for_completion = no;
// allow_session_interruption = no;
// session_timeout = 120;
};
alsa =
{
// device_type = software;
// device = "default";
// mixer = "default"; // default is that the device is also the mixer
// mixer_control_name = "PCM"
};