1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-01-28 18:04:53 +00:00

Fixed setting mixrampdelay and mixrampdb, issue #9

This commit is contained in:
jcorporation 2018-06-04 20:48:23 +02:00
parent abedf01628
commit 8bf7729633

View File

@ -140,11 +140,11 @@ int callback_mpd(struct mg_connection *c)
break;
case MPD_API_SET_MIXRAMPDB:
if(sscanf(c->content, "MPD_API_SET_MIXRAMPDB,%lf", &double_buf))
mpd_run_mixrampdb(mpd.conn, uint_buf);
mpd_run_mixrampdb(mpd.conn, double_buf);
break;
case MPD_API_SET_MIXRAMPDELAY:
if(sscanf(c->content, "MPD_API_SET_MIXRAMPDELAY,%lf", &double_buf))
mpd_run_mixrampdelay(mpd.conn, uint_buf);
mpd_run_mixrampdelay(mpd.conn, double_buf);
break;
case MPD_API_GET_OUTPUTS:
mpd.buf_size = mpd_put_outputs(mpd.buf, 1);