diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2018-10-15 11:59:01 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2018-10-15 11:59:01 +0200 |
commit | 33eebc7479149fb1a31a8d458649aeddd77bc44b (patch) | |
tree | 0d2657b2c9ead062f343ee52ee1c0accdb8c758c /src/settings.c | |
parent | fb587856d3fb4fe5cbb4d24357030c023b425be9 (diff) | |
download | pianobar-33eebc7479149fb1a31a8d458649aeddd77bc44b.tar.gz pianobar-33eebc7479149fb1a31a8d458649aeddd77bc44b.tar.bz2 pianobar-33eebc7479149fb1a31a8d458649aeddd77bc44b.zip |
Expose audio buffer size setting
See issue #672.
Diffstat (limited to 'src/settings.c')
-rw-r--r-- | src/settings.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings.c b/src/settings.c index 72553e3..4ee1bd6 100644 --- a/src/settings.c +++ b/src/settings.c @@ -165,6 +165,7 @@ void BarSettingsRead (BarSettings_t *settings) { settings->gainMul = 1.0; /* should be > 4, otherwise expired audio urls (403) can stop playback */ settings->maxRetry = 5; + settings->bufferSecs = 5; settings->sortOrder = BAR_SORT_NAME_AZ; settings->loveIcon = strdup (" <3"); settings->banIcon = strdup (" </3"); @@ -343,6 +344,8 @@ void BarSettingsRead (BarSettings_t *settings) { settings->maxRetry = atoi (val); } else if (streq ("timeout", key)) { settings->timeout = atoi (val); + } else if (streq ("buffer_seconds", key)) { + settings->bufferSecs = atoi (val); } else if (streq ("sort", key)) { size_t i; static const char *mapping[] = {"name_az", |