mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pw-cat: add pw-midiplay and pw-midirecord aliases
This commit is contained in:
parent
f11cd32258
commit
5b9e82c4e8
2 changed files with 9 additions and 1 deletions
|
|
@ -34,6 +34,8 @@ if get_option('pw-cat') and sndfile_dep.found()
|
||||||
pwcat_aliases = [
|
pwcat_aliases = [
|
||||||
'pw-play',
|
'pw-play',
|
||||||
'pw-record',
|
'pw-record',
|
||||||
|
'pw-midiplay',
|
||||||
|
'pw-midirecord',
|
||||||
]
|
]
|
||||||
|
|
||||||
executable('pw-cat',
|
executable('pw-cat',
|
||||||
|
|
|
||||||
|
|
@ -1234,7 +1234,13 @@ int main(int argc, char *argv[])
|
||||||
data.mode = mode_playback;
|
data.mode = mode_playback;
|
||||||
else if (!strcmp(prog, "pw-record"))
|
else if (!strcmp(prog, "pw-record"))
|
||||||
data.mode = mode_record;
|
data.mode = mode_record;
|
||||||
else
|
else if (!strcmp(prog, "pw-midiplay")) {
|
||||||
|
data.mode = mode_playback;
|
||||||
|
data.is_midi = true;
|
||||||
|
} else if (!strcmp(prog, "pw-midirecord")) {
|
||||||
|
data.mode = mode_record;
|
||||||
|
data.is_midi = true;
|
||||||
|
} else
|
||||||
data.mode = mode_none;
|
data.mode = mode_none;
|
||||||
|
|
||||||
/* negative means no volume adjustment */
|
/* negative means no volume adjustment */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue