mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
add module-pipe-source
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@180 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
6c4fd62040
commit
566e469bbe
8 changed files with 233 additions and 11 deletions
|
|
@ -313,6 +313,17 @@ int main(int argc, char *argv[]) {
|
|||
else if (strstr(bn, "cat") || strstr(bn, "play"))
|
||||
mode = PLAYBACK;
|
||||
|
||||
if (argc >= 2) {
|
||||
if (!strcmp(argv[1], "-r"))
|
||||
mode = RECORD;
|
||||
else if (!strcmp(argv[1], "-p"))
|
||||
mode = PLAYBACK;
|
||||
else {
|
||||
fprintf(stderr, "Invalid argument\n");
|
||||
goto quit;
|
||||
}
|
||||
}
|
||||
|
||||
fprintf(stderr, "Opening a %s stream.\n", mode == RECORD ? "recording" : "playback");
|
||||
|
||||
/* Set up a new main loop */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue