X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/763d5e6ad88ef3ba1cd1d7742d060e4f1e54c6b8..902b7f9d095cc888d9482a77ca5aec9ec4341352:/lib/configuration.h diff --git a/lib/configuration.h b/lib/configuration.h index 4af3cad..c304921 100644 --- a/lib/configuration.h +++ b/lib/configuration.h @@ -21,6 +21,8 @@ #ifndef CONFIGURATION_H #define CONFIGURATION_H +#include + struct real_pcre; /* Configuration is kept in a @struct config@; the live configuration @@ -97,6 +99,9 @@ struct config { int lock; /* server takes a lock */ long nice_server; /* nice value for server */ long nice_speaker; /* nice value for speaker */ + const char *speaker_command; /* command for speaker to run */ + ao_sample_format sample_format; /* sample format to enforce */ + long sox_generation; /* sox syntax generation */ /* shared client/server config */ const char *home; /* home directory for state files */ /* client config */ @@ -107,6 +112,8 @@ struct config { const char *url; /* canonical URL */ long refresh; /* maximum refresh period */ unsigned restrictions; /* restrictions */ + long queue_pad; /* how far to pad queue with + * random tracks */ #define RESTRICT_SCRATCH 1 #define RESTRICT_REMOVE 2 #define RESTRICT_MOVE 4