From 990484ec64d0aa9949e3188aa411e4b9846d7843 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Tue, 22 Mar 2022 09:28:27 +0000 Subject: [PATCH] Feature: Also send samplerate, and channels on YP touch --- src/yp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/yp.c b/src/yp.c index dc66bfc5..e5864e3d 100644 --- a/src/yp.c +++ b/src/yp.c @@ -480,8 +480,9 @@ static int do_yp_touch (ypdata_t *yp, char *s, unsigned len) update_yp_info(yp); ret = snprintf (s, len, "action=touch&sid=%s&st=%s" - "&listeners=%u&max_listeners=%u&stype=%s\r\n", - yp->sid, yp->current_song, listeners, max_listeners, yp->subtype); + "&listeners=%u&max_listeners=%u&stype=%s&samplerate=%s&channels=%s", + yp->sid, yp->current_song, listeners, max_listeners, yp->subtype, + yp->audio_samplerate, yp->audio_channels); if (ret >= (signed)len) return ret+1; /* space required for above text and nul*/