aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs/audioOutput_shout.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/audioOutputs/audioOutput_shout.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/audioOutputs/audioOutput_shout.c b/src/audioOutputs/audioOutput_shout.c
index 2c0cdd898..8eb4f4672 100644
--- a/src/audioOutputs/audioOutput_shout.c
+++ b/src/audioOutputs/audioOutput_shout.c
@@ -224,6 +224,25 @@ static int myShout_initDriver(AudioOutput * audioOutput, ConfigParam * param) {
exit(EXIT_FAILURE);
}
+ /* optional paramters */
+ blockParam = getBlockParam(param, "genre");
+ if(blockParam && shout_set_genre(sd->shoutConn, blockParam->value)) {
+ ERROR("error configuring shout defined at line %i: %s\n",
+ param->line,
+ shout_get_error(sd->shoutConn));
+ exit(EXIT_FAILURE);
+ }
+
+ blockParam = getBlockParam(param, "description");
+ if(blockParam && shout_set_description(sd->shoutConn,
+ blockParam->value))
+ {
+ ERROR("error configuring shout defined at line %i: %s\n",
+ param->line,
+ shout_get_error(sd->shoutConn));
+ exit(EXIT_FAILURE);
+ }
+
{
char temp[11];
memset(temp, 0, sizeof(temp));