pw-top: remove some slashes to avoid confusion

Update man page
This commit is contained in:
Wim Taymans 2022-09-06 18:32:56 +02:00
parent ffc09ce55e
commit e9b7667b55
2 changed files with 8 additions and 2 deletions

View file

@ -133,6 +133,12 @@ FORMAT
If the stream of driver has a different rate than the graph, resampling will
be done.
For raw audio formats, the layout is <sampleformat> <channels> <samplerate>.
For DSD formats, the layout is <dsd-rate> <channels>.
For Video formats, the layout is <pixelformat> <width>x<height>.
NAME
Name assigned to the device/node, as found in *pw-dump* node.name

View file

@ -179,7 +179,7 @@ static void node_param(void *data, int seq,
{
struct spa_audio_info_raw info;
if (spa_format_audio_raw_parse(param, &info) >= 0) {
snprintf(n->format, sizeof(n->format), "%6.6s/%d %-6d",
snprintf(n->format, sizeof(n->format), "%6.6s %d %d",
spa_debug_type_find_short_name(spa_type_audio_format, info.format),
info.channels, info.rate);
}
@ -189,7 +189,7 @@ static void node_param(void *data, int seq,
{
struct spa_audio_info_dsd info;
if (spa_format_audio_dsd_parse(param, &info) >= 0) {
snprintf(n->format, sizeof(n->format), "DSD%d/%2d ",
snprintf(n->format, sizeof(n->format), "DSD%d %d ",
8 * info.rate / 44100, info.channels);
}