mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 12:37:01 +03:00
displat mixup ms and s in RAOP as BT natively sends ms
This commit is contained in:
@@ -630,9 +630,10 @@ static bool handle_rtsp(raop_ctx_t *ctx, int sock)
|
|||||||
float volume;
|
float volume;
|
||||||
|
|
||||||
sscanf(p, "%*[^:]:%f", &volume);
|
sscanf(p, "%*[^:]:%f", &volume);
|
||||||
|
LOG_INFO("[%p]: SET PARAMETER volume %f", ctx, volume);
|
||||||
volume = (volume == -144.0) ? 0 : (1 + volume / 30);
|
volume = (volume == -144.0) ? 0 : (1 + volume / 30);
|
||||||
volume = (volume == -144.0) ? 0 : (1 + volume / 30);
|
success = ctx->cmd_cb(RAOP_VOLUME, volume);
|
||||||
success = ctx->cmd_cb(RAOP_VOLUME, volume);
|
} else if (body && (p = strcasestr(body, "progress")) != NULL) {
|
||||||
int start, current, stop = 0;
|
int start, current, stop = 0;
|
||||||
|
|
||||||
// we want ms, not s
|
// we want ms, not s
|
||||||
|
|||||||
Reference in New Issue
Block a user