mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2024-12-22 23:05:29 +00:00
examples: add --jack param
This commit is contained in:
parent
97ee72ce5f
commit
31678c7777
|
@ -14,7 +14,7 @@
|
|||
// list or keep a watch on audio devices
|
||||
|
||||
static int usage(char *exe) {
|
||||
fprintf(stderr, "Usage: %s [--watch] [--dummy] [--alsa] [--pulseaudio]\n", exe);
|
||||
fprintf(stderr, "Usage: %s [--watch] [--dummy] [--alsa] [--pulseaudio] [--jack]\n", exe);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -120,6 +120,8 @@ int main(int argc, char **argv) {
|
|||
backend = SoundIoBackendAlsa;
|
||||
} else if (strcmp("--pulseaudio", arg) == 0) {
|
||||
backend = SoundIoBackendPulseAudio;
|
||||
} else if (strcmp("--jack", arg) == 0) {
|
||||
backend = SoundIoBackendJack;
|
||||
} else {
|
||||
return usage(exe);
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ static void panic(const char *format, ...) {
|
|||
}
|
||||
|
||||
static int usage(char *exe) {
|
||||
fprintf(stderr, "Usage: %s [--dummy] [--alsa] [--pulseaudio]\n", exe);
|
||||
fprintf(stderr, "Usage: %s [--dummy] [--alsa] [--pulseaudio] [--jack]\n", exe);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -86,6 +86,8 @@ int main(int argc, char **argv) {
|
|||
backend = SoundIoBackendAlsa;
|
||||
} else if (strcmp("--pulseaudio", arg) == 0) {
|
||||
backend = SoundIoBackendPulseAudio;
|
||||
} else if (strcmp("--jack", arg) == 0) {
|
||||
backend = SoundIoBackendJack;
|
||||
} else {
|
||||
return usage(exe);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue