// SPDX-FileCopyrightText: 2022-2025 Geoffrey D. Bennett // SPDX-License-Identifier: GPL-3.0-or-later #pragma once #include #include "alsa.h" // Create a two-level hierarchical dropdown for ALSA enum elements. // Groups items by stripping trailing numbers from item names. // E.g., "PCM 1", "PCM 2" become a "PCM" group with "1", "2" subitems. GtkWidget *make_drop_down_two_level_alsa_elem(struct alsa_elem *elem); // Create a stereo-aware monitor group source dropdown. // Filters items based on source stereo link state: // - Stereo sink (stereo=1): merges linked pairs, shows unlinked individually // - Mono sink (stereo=0): hides linked sources entirely // Shows display names (custom or default) instead of raw ALSA names. GtkWidget *make_monitor_group_source_dropdown( struct alsa_elem *elem, struct alsa_card *card, int stereo );