From 9d102497354aeb75f61df48a8b48f88f15cc55e2 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Fri, 8 May 2026 07:51:51 +0100 Subject: [PATCH] Update help information about password and stuffing modes. Quieten some debug messages. --- rtsp.c | 6 +++--- shairport.c | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/rtsp.c b/rtsp.c index d167503c..7bc90389 100644 --- a/rtsp.c +++ b/rtsp.c @@ -1692,10 +1692,10 @@ void handle_pair_pin_start(rtsp_conn_info *conn, rtsp_message *req, rtsp_message free(conn->ap2_client_name); conn->ap2_client_name = strdup(hdr); } - debug(1, "Connection %d from \"%s\": handle_pair_pin_start, Content-Length %d", conn->connection_number, + debug(4, "Connection %d from \"%s\": handle_pair_pin_start, Content-Length %d", conn->connection_number, conn->ap2_client_name, req->contentlength); - debug_log_rtsp_message_conn(conn, 1, "handle_pair_pin_start", req); + debug_log_rtsp_message_conn(conn, 4, "handle_pair_pin_start", req); uint8_t *body = NULL; size_t body_len = 0; @@ -1704,7 +1704,7 @@ void handle_pair_pin_start(rtsp_conn_info *conn, rtsp_message *req, rtsp_message resp->contentlength = body_len; if (body != NULL) msg_add_header(resp, "Content-Type", "application/octet-stream"); - debug_log_rtsp_message(1, "pair-pin-start response", resp); + debug_log_rtsp_message(4, "pair-pin-start response", resp); } void handle_pair_setup(rtsp_conn_info *conn, rtsp_message *req, rtsp_message *resp) { diff --git a/shairport.c b/shairport.c index 695c1f79..17c1ce0a 100644 --- a/shairport.c +++ b/shairport.c @@ -326,14 +326,15 @@ void usage(char *progname) { printf(" -v, --verbose Print debug information; -v some; -vv more; -vvv lots -- generally too much.\n"); printf(" -c, --configfile=FILE Read configuration settings from FILE. Default is %s.\n", configuration_file_path); printf(" -a, --name=NAME Set service name. Default is the hostname with first letter capitalised.\n"); - printf(" --password=PASSWORD Require PASSWORD to connect. Default is no password. (Classic AirPlay only.)\n"); + printf(" --password=PASSWORD Require PASSWORD to connect. Default is no password.\n"); printf(" -p, --port=PORT Set RTSP listening port. Default 5000; 7000 for AirPlay 2.\n"); printf(" -L, --latency=FRAMES [Deprecated] Set the latency for audio sent from an unknown device.\n"); printf(" The default is to set it automatically.\n"); printf(" -S, --stuffing=MODE Set how to adjust current latency to match desired latency, where:\n"); - printf(" \"basic\" inserts or deletes audio frames from packet frames with low processor overhead, and\n"); - printf(" \"soxr\" uses libsoxr to minimally resample packet frames -- moderate processor overhead.\n"); - printf(" The default \"auto\" setting chooses basic or soxr depending on processor capability.\n"); + printf(" \"vernier\" recodes a packet of frames to a new packet containing more or fewer frames. Recommended for low powered devices;\n"); + printf(" \"basic\" inserts or deletes audio frames from packet frames with low processor overhead; and\n"); + printf(" \"soxr\" uses libsoxr to minimally resample packet frames -- moderate floating point processor overhead.\n"); + printf(" The default \"auto\" setting chooses vernier or soxr depending on processor capability.\n"); printf(" The \"soxr\" option is only available if built with soxr support.\n"); printf(" -B, --on-start=PROGRAM Run PROGRAM when playback is about to begin.\n"); printf(" -E, --on-stop=PROGRAM Run PROGRAM when playback has ended.\n");