feat: node property inspector
- Right-click node -> Properties shows details dialog - Shows: ID, name, class, volume, ports, sample rate, channels, format, quantum, rate, device, bus, API, priority - Backend parses extra PipeWire node props (clock.rate, channels, etc.) - Node type includes all new fields - stop() already had the SSE cleanup fix
This commit is contained in:
@@ -97,6 +97,36 @@ static void on_node_info(void *data, const struct pw_node_info *info) {
|
||||
if (mute_str) {
|
||||
nobj->node.mute = pw_properties_parse_bool(mute_str);
|
||||
}
|
||||
|
||||
// Read additional properties
|
||||
const char *str;
|
||||
|
||||
str = spa_dict_lookup(info->props, "default.clock.rate");
|
||||
if (str) nobj->node.sample_rate = (uint32_t)atoi(str);
|
||||
|
||||
str = spa_dict_lookup(info->props, "default.clock.quantum");
|
||||
if (str) nobj->node.quantum = (uint32_t)atoi(str);
|
||||
|
||||
str = spa_dict_lookup(info->props, "audio.channels");
|
||||
if (str) nobj->node.channels = (uint32_t)atoi(str);
|
||||
|
||||
str = spa_dict_lookup(info->props, "audio.format");
|
||||
if (str) nobj->node.format = str;
|
||||
|
||||
str = spa_dict_lookup(info->props, "device.name");
|
||||
if (str) nobj->node.device_name = str;
|
||||
|
||||
str = spa_dict_lookup(info->props, "device.bus");
|
||||
if (str) nobj->node.device_bus = str;
|
||||
|
||||
str = spa_dict_lookup(info->props, "api.alsa.path");
|
||||
if (str) nobj->node.api = str;
|
||||
|
||||
str = spa_dict_lookup(info->props, "priority.driver");
|
||||
if (str) nobj->node.priority = atoi(str);
|
||||
|
||||
str = spa_dict_lookup(info->props, "node.rate");
|
||||
if (str) nobj->node.rate = (uint32_t)atoi(str);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user