2
0
mirror of https://github.com/Genymobile/scrcpy synced 2025-09-04 16:25:14 +00:00

Add --audio-output-buffer

On some systems, the SDL audio callback is not called frequently enough
(for example it requests 5ms of samples every 10ms), because the output
buffer is too small.

By default, we want to use a small value (5ms) to minimize latency and
buffer underrun, but if it does not work well, users need a way to
increase it.

Refs #3793 <https://github.com/Genymobile/scrcpy/issues/3793>
This commit is contained in:
Romain Vimont
2023-03-13 09:23:02 +01:00
parent 4755b97908
commit 39544f34b4
10 changed files with 86 additions and 21 deletions

View File

@@ -127,6 +127,7 @@ struct scrcpy_options {
sc_tick display_buffer;
sc_tick v4l2_buffer;
sc_tick audio_buffer;
sc_tick audio_output_buffer;
#ifdef HAVE_USB
bool otg;
#endif