fixed the old multi-line strings.

This commit is contained in:
Takashi Iwai 2003-07-14 10:22:39 +00:00
parent 2335577a15
commit 3eba62e9a8

View file

@ -441,23 +441,23 @@ void applyeffect(char* buffer,int r)
void help(void) void help(void)
{ {
int k; int k;
printf("\ printf(
Usage: latency [OPTION]... [FILE]... "Usage: latency [OPTION]... [FILE]...\n"
-h,--help help "-h,--help help\n"
-P,--pdevice playback device "-P,--pdevice playback device\n"
-C,--cdevice capture device "-C,--cdevice capture device\n"
-m,--min minimum latency in frames "-m,--min minimum latency in frames\n"
-M,--max maximum latency in frames "-M,--max maximum latency in frames\n"
-F,--frames frames to transfer "-F,--frames frames to transfer\n"
-f,--format sample format "-f,--format sample format\n"
-c,--channels channels "-c,--channels channels\n"
-r,--rate rate "-r,--rate rate\n"
-s,--seconds duration of test in seconds "-s,--seconds duration of test in seconds\n"
-b,--block block mode "-b,--block block mode\n"
-t,--time maximal tick time in us "-t,--time maximal tick time in us\n"
-p,--poll use poll (wait for event - reduces CPU usage) "-p,--poll use poll (wait for event - reduces CPU usage)\n"
-e,--effect apply an effect (bandpass filter sweep) "-e,--effect apply an effect (bandpass filter sweep)\n"
"); );
printf("Recognized sample formats are:"); printf("Recognized sample formats are:");
for (k = 0; k < SND_PCM_FORMAT_LAST; ++(unsigned long) k) { for (k = 0; k < SND_PCM_FORMAT_LAST; ++(unsigned long) k) {
const char *s = snd_pcm_format_name(k); const char *s = snd_pcm_format_name(k);
@ -465,13 +465,13 @@ Usage: latency [OPTION]... [FILE]...
printf(" %s", s); printf(" %s", s);
} }
printf("\n\n"); printf("\n\n");
printf("\ printf(
Tip #1 (usable latency with large periods, non-blocking mode, good CPU usage, "Tip #1 (usable latency with large periods, non-blocking mode, good CPU usage,\n"
superb xrun prevention): " superb xrun prevention):\n"
latency -m 8192 -M 8192 -t 1 -p " latency -m 8192 -M 8192 -t 1 -p\n"
Tip #2 (superb latency, non-blocking mode, but heavy CPU usage): "Tip #2 (superb latency, non-blocking mode, but heavy CPU usage):\n"
latency -m 128 -M 128 " latency -m 128 -M 128\n"
"); );
} }
int main(int argc, char *argv[]) int main(int argc, char *argv[])