From 4c4a03ebe16749aec8a83d27cd28e3d686de171c Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 30 May 2023 19:31:48 +0200 Subject: [PATCH] Reorder options to maintain alphabetical order --- app/scrcpy.1 | 16 ++++++++-------- app/src/cli.c | 20 ++++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/app/scrcpy.1 b/app/scrcpy.1 index d506d9e7..a30e7db0 100644 --- a/app/scrcpy.1 +++ b/app/scrcpy.1 @@ -33,14 +33,6 @@ Lower values decrease the latency, but increase the likelyhood of buffer underru Default is 50. -.TP -.BI "\-\-audio\-output\-buffer ms -Configure the size of the SDL audio output buffer (in milliseconds). - -If you get "robotic" audio playback, you should test with a higher value (10). Do not change this setting otherwise. - -Default is 5. - .TP .BI "\-\-audio\-codec " name Select an audio codec (opus, aac or raw). @@ -63,6 +55,14 @@ Use a specific MediaCodec audio encoder (depending on the codec provided by \fB\ The available encoders can be listed by \-\-list\-encoders. +.TP +.BI "\-\-audio\-output\-buffer ms +Configure the size of the SDL audio output buffer (in milliseconds). + +If you get "robotic" audio playback, you should test with a higher value (10). Do not change this setting otherwise. + +Default is 5. + .TP .BI "\-b, \-\-video\-bit\-rate " value Encode the video at the given bit\-rate, expressed in bits/s. Unit suffixes are supported: '\fBK\fR' (x1000) and '\fBM\fR' (x1000000). diff --git a/app/src/cli.c b/app/src/cli.c index 1b42f75c..01b55406 100644 --- a/app/src/cli.c +++ b/app/src/cli.c @@ -134,16 +134,6 @@ static const struct sc_option options[] = { "likelyhood of buffer underrun (causing audio glitches).\n" "Default is 50.", }, - { - .longopt_id = OPT_AUDIO_OUTPUT_BUFFER, - .longopt = "audio-output-buffer", - .argdesc = "ms", - .text = "Configure the size of the SDL audio output buffer (in " - "milliseconds).\n" - "If you get \"robotic\" audio playback, you should test with " - "a higher value (10). Do not change this setting otherwise.\n" - "Default is 5.", - }, { .longopt_id = OPT_AUDIO_CODEC, .longopt = "audio-codec", @@ -171,6 +161,16 @@ static const struct sc_option options[] = { "codec provided by --audio-codec).\n" "The available encoders can be listed by --list-encoders.", }, + { + .longopt_id = OPT_AUDIO_OUTPUT_BUFFER, + .longopt = "audio-output-buffer", + .argdesc = "ms", + .text = "Configure the size of the SDL audio output buffer (in " + "milliseconds).\n" + "If you get \"robotic\" audio playback, you should test with " + "a higher value (10). Do not change this setting otherwise.\n" + "Default is 5.", + }, { .shortopt = 'b', .longopt = "video-bit-rate",