}
static void stop(void) {
- debug(1,"audio_alsa stop called.");
pthread_cleanup_debug_mutex_lock(&alsa_mutex, 10000, 1);
if (alsa_backend_state != abm_disconnected) { // must be playing or connected...
if (config.keep_dac_busy == 0) {
}
}
+void handle_audio_mode(rtsp_conn_info *conn,
+ rtsp_message *req,
+ __attribute__((unused)) rtsp_message *resp) {
+ debug(2, "Connection %d: POST %s Content-Length %d", conn->connection_number, req->path,
+ req->contentlength);
+ debug_log_rtsp_message(2, NULL, req);
+}
+
+
void handle_post(rtsp_conn_info *conn, rtsp_message *req, rtsp_message *resp) {
resp->respcode = 200;
if (strcmp(req->path, "/pair-setup") == 0) {
handle_feedback(conn, req, resp);
} else if (strcmp(req->path, "/command") == 0) {
handle_command(conn, req, resp);
+ } else if (strcmp(req->path, "/audioMode") == 0) {
+ handle_audio_mode(conn, req, resp);
} else {
debug(1, "Connection %d: Unhandled POST %s Content-Length %d", conn->connection_number,
req->path, req->contentlength);