From 1372f90ce7001f825ed0d9376f0a42db04008654 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Fri, 19 Nov 2010 21:27:54 +0100 Subject: [PATCH] Send out per-speaker (relative) volume atom --- src/httpd_dacp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/httpd_dacp.c b/src/httpd_dacp.c index 201793ee..9cb1cd86 100644 --- a/src/httpd_dacp.c +++ b/src/httpd_dacp.c @@ -1411,7 +1411,7 @@ speaker_enum_cb(uint64_t id, const char *name, int relvol, int selected, int has evbuf = (struct evbuffer *)arg; - len = 8 + strlen(name) + 16; + len = 8 + strlen(name) + 28; if (selected) len += 9; if (has_password) @@ -1424,6 +1424,8 @@ speaker_enum_cb(uint64_t id, const char *name, int relvol, int selected, int has dmap_add_char(evbuf, "cahp", 1); /* 9 */ dmap_add_string(evbuf, "minm", name); /* 8 + len */ dmap_add_long(evbuf, "msma", id); /* 16 */ + + dmap_add_int(evbuf, "cmvo", relvol); /* 12 */ } static void