Debian Codegraph @

src/window-routing.h

raw symbols SCIP
1 // SPDX-FileCopyrightText: 2022-2025 Geoffrey D. Bennett <[email protected]>
2 // SPDX-License-Identifier: GPL-3.0-or-later
3
4 #pragma once
5
6 #include <gtk/gtk.h>
7
8 #include "alsa.h"
9
10 GtkWidget *create_routing_controls(struct alsa_card *card);
11
12 // Update hardware output label to show monitor group status (Main/Alt indicators)
13 void update_hw_output_label(struct routing_snk *r_snk);
14
15 // Update routing source label (stereo-aware name with availability)
16 void update_routing_src_label(struct routing_src *r_src);
17
18 // Update cached effective source index for a routing sink
19 void update_snk_effective_source(struct routing_snk *r_snk);
20
21 // Update all PCM labels when channel availability changes
22 void update_all_pcm_labels(struct alsa_card *card);
23
24 // Update all HW I/O labels when availability changes
25 void update_all_hw_io_labels(struct alsa_card *card);
26
27 // Check if a sink is currently muted (in inactive monitor group)
28 int is_snk_monitor_muted(struct routing_snk *r_snk);
29
30 // Arrange source/sink widgets in their grids (removes empty rows/columns)
31 void arrange_src_grid(struct alsa_card *card, int port_category);
32 void arrange_snk_grid(struct alsa_card *card, int port_category);
33
34 // Release refs held on routing widgets (call before window destroy)
35 void cleanup_routing_widgets(struct alsa_card *card);