Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"robotic" and glitchy sound #3793

Closed
2 tasks
BillVGN opened this issue Mar 12, 2023 · 14 comments
Closed
2 tasks

"robotic" and glitchy sound #3793

BillVGN opened this issue Mar 12, 2023 · 14 comments

Comments

@BillVGN
Copy link

BillVGN commented Mar 12, 2023

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: Windows 10 Professional x64
  • scrcpy version: 2.0
  • installation method: Windows release
  • device model: Realme GT 5G
  • Android version: 12

Describe the bug
I've tried changing audio buffer to higher values (video buffering too), have also changed audio bitrate and so on, but it always come out as a "robotic" sound with many "clicks" and "impurities" as well (I'm trying my best to describe it, bear with me, please). So, when I decided I was going to place an issue about this, of course I recorded a minuscule sample video to showcase it. I was displeasedly surprised after playing it with perfect sound, not "robotic" or glitchy at all, just smooth audio playback. That's why I didn't consider uploading that sample.

So, I've hunted my Windows audio config to see if anything was causing this strange behavior. I've let go of the thought after many tweaks with no positive (or negative) changes.

Have you or anybody else gone through this before?

@rom1v
Copy link
Collaborator

rom1v commented Mar 12, 2023

So the problem only occurs in real-time playback, but not recording via scrcpy --record.

Please run scrcpy -Vverbose and post the output when the sound is "robotic".

@BillVGN
Copy link
Author

BillVGN commented Mar 12, 2023

Here it is:

scrcpy 2.0 <https://github.com/Genymobile/scrcpy>
DEBUG: ADB device found:
DEBUG:     -->   (usb)              c0939de4            device  RMX2202
DEBUG: Device serial: c0939de4
DEBUG: Using server (portable): K:\Downloads\scrcpy-win64-v2.0\scrcpy-server
K:\Downloads\scrcpy-win64-v2.0\scrcpy-server: 1 file pushed, 0 skipped. 96.1 MB/s (52867 bytes in 0.001s)
[server] INFO: Device: realme RMX2202 (Android 12)
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
[server] DEBUG: Using audio encoder: 'c2.android.opus.encoder'
[server] DEBUG: Using encoder: 'c2.qti.avc.encoder'
INFO: Renderer: direct3d
DEBUG: Trilinear filtering disabled (not an OpenGL renderer)
DEBUG: Using icon (portable): K:\Downloads\scrcpy-win64-v2.0\icon.png
DEBUG: Demuxer 'video': starting thread
DEBUG: Demuxer 'audio': starting thread
INFO: Initial texture: 1080x2400
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 960 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
VERBOSE: [Audio] Buffering: target=2400 avg=5574.711425 cur=6000 compensation=-3174
DEBUG: [Audio] Buffering threshold exceeded, skipping 448 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 689 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 944 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 929 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
VERBOSE: [Audio] Buffering: target=2400 avg=5515.728515 cur=5985 compensation=-3115
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 945 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 945 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 689 samples
VERBOSE: [Audio] Buffering: target=2400 avg=5500.143554 cur=6209 compensation=-3100
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 930 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 945 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 929 samples
VERBOSE: [Audio] Buffering: target=2400 avg=5508.444335 cur=6449 compensation=-3108
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 945 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
VERBOSE: [Audio] Buffering: target=2400 avg=5509.835937 cur=5985 compensation=-3109
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 689 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 945 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
VERBOSE: [Audio] Buffering: target=2400 avg=5516.796386 cur=6225 compensation=-3116
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: User requested to quit
DEBUG: quit...
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: Demuxer 'video': end of frames[server] DEBUG: Controller stopped

DEBUG: Receiver stopped
DEBUG: Demuxer 'audio': end of frames
WARN: Killing the server...
DEBUG: Server disconnected
DEBUG: Server terminated

@rom1v
Copy link
Collaborator

rom1v commented Mar 12, 2023

Wow, that's weird :/

Here is a build with this diff:

diff --git a/app/src/audio_player.c b/app/src/audio_player.c
index bba39acbf..fb80d8525 100644
--- a/app/src/audio_player.c
+++ b/app/src/audio_player.c
@@ -5,7 +5,7 @@
 
 #include "util/log.h"
 
-#define SC_AUDIO_PLAYER_NDEBUG // comment to debug
+//#define SC_AUDIO_PLAYER_NDEBUG // comment to debug
 
 /**
  * Real-time audio player with configurable latency
  • scrcpy.exe SHA-256: c4f164bde115dd5838f556c7d7224a776eaff8d087755f43e65cc48ea8b99820

Please retry scrcpy -Vverbose with this binary (replaced in your v2.0 release folder).

@BillVGN
Copy link
Author

BillVGN commented Mar 12, 2023

new binary output:

K:\Downloads\scrcpy-win64-v2.0>scrcpy.exe -Vverbose
scrcpy 2.0 <https://github.com/Genymobile/scrcpy>
DEBUG: ADB device found:
DEBUG:     -->   (usb)              c0939de4            device  RMX2202
DEBUG: Device serial: c0939de4
DEBUG: Using server (portable): K:\Downloads\scrcpy-win64-v2.0\scrcpy-server
K:\Downloads\scrcpy-win64-v2.0\scrcpy-server: 1 file pushed, 0 skipped. 94.7 MB/s (52867 bytes in 0.001s)
[server] INFO: Device: realme RMX2202 (Android 12)
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
INFO: Renderer: direct3d
DEBUG: Trilinear filtering disabled (not an OpenGL rendere[server] DEBUG: Using encoder: 'c2.qti.avc.encoder'
r)
DEBUG: Using icon (portable): K:\Downloads\scrcpy-win64-v2.0\icon.png
DEBUG: Demuxer 'video': starting thread
DEBUG: Demuxer 'audio': starting thread
INFO: Initial texture: 1080x2400
[server] DEBUG: Using audio encoder: 'c2.android.opus.encoder'
DEBUG: [Audio] SDL callback requests 240 samples
VERBOSE: [Audio] Inserting initial buffering silence: 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] buffered_samples=2400 avg_buffering=2400.000000
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] buffered_samples=2640 avg_buffering=2520.000000
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] buffered_samples=3360 avg_buffering=2800.000000
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] buffered_samples=3840 avg_buffering=3060.000000
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] buffered_samples=4320 avg_buffering=3312.000000
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] buffered_samples=4800 avg_buffering=3560.000000
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] buffered_samples=5280 avg_buffering=3805.714355
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] buffered_samples=5760 avg_buffering=4050.000000
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=4266.666503
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] buffered_samples=5760 avg_buffering=4416.000000
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] buffered_samples=6240 avg_buffering=4581.818359
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=4700.000000
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] buffered_samples=5760 avg_buffering=4781.538574
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=4868.571289
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] buffered_samples=5760 avg_buffering=4928.000000
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=4995.000000
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] buffered_samples=6240 avg_buffering=5068.235351
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5120.000000
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] buffered_samples=6240 avg_buffering=5178.947265
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5220.000000
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] buffered_samples=6240 avg_buffering=5268.571289
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5301.818359
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] buffered_samples=6240 avg_buffering=5342.608886
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5370.000488
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] buffered_samples=5760 avg_buffering=5385.600585
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] buffered_samples=6240 avg_buffering=5418.461914
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] buffered_samples=5520 avg_buffering=5422.222656
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] buffered_samples=6240 avg_buffering=5451.429199
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] buffered_samples=6240 avg_buffering=5478.621093
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5496.000488
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] buffered_samples=6240 avg_buffering=5520.000488
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] buffered_samples=5760 avg_buffering=5527.500488
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5542.266113
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] buffered_samples=6240 avg_buffering=5564.070312
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5577.693359
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5590.890624
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] buffered_samples=5520 avg_buffering=5588.675292
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] buffered_samples=6240 avg_buffering=5609.029296
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5621.247070
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5633.083007
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5644.549316
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5655.657226
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] buffered_samples=5760 avg_buffering=5658.917968
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5669.576660
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5679.902343
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] buffered_samples=6240 avg_buffering=5697.405273
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 480 samples
DEBUG: [Audio] buffered_samples=6000 avg_buffering=5706.861328
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] buffered_samples=6240 avg_buffering=5723.521972
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 240 samples
DEBUG: [Audio] buffered_samples=5760 avg_buffering=5724.662109
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 960 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 720 samples
DEBUG: [Audio] buffered_samples=6240 avg_buffering=5740.766601
VERBOSE: [Audio] Buffering: target=2400 avg=5740.766601 cur=6240 compensation=-3340
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 927 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 207 samples
DEBUG: [Audio] buffered_samples=5727 avg_buffering=5708.367675
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5701.480957
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5694.809570
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 223 samples
DEBUG: [Audio] buffered_samples=5743 avg_buffering=5679.846679
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5673.851562
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 703 samples
DEBUG: [Audio] buffered_samples=6223 avg_buffering=5674.543945
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5668.714355
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 223 samples
DEBUG: [Audio] buffered_samples=5743 avg_buffering=5654.566894
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5656.861816
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5651.584960
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] buffered_samples=5503 avg_buffering=5630.473144
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 687 samples
DEBUG: [Audio] buffered_samples=6207 avg_buffering=5632.989746
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 703 samples
DEBUG: [Audio] buffered_samples=6223 avg_buffering=5634.958984
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5637.866699
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] buffered_samples=5744 avg_buffering=5625.683593
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 463 samples
DEBUG: [Audio] buffered_samples=5983 avg_buffering=5620.380859
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5623.744140
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 223 samples
DEBUG: [Audio] buffered_samples=5743 avg_buffering=5611.001953
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5607.158203
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] buffered_samples=5504 avg_buffering=5588.434570
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 687 samples
DEBUG: [Audio] buffered_samples=6207 avg_buffering=5591.295898
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5595.567871
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 223 samples
DEBUG: [Audio] buffered_samples=5743 avg_buffering=5583.706542
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5580.715820
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 463 samples
DEBUG: [Audio] buffered_samples=5983 avg_buffering=5576.818359
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] buffered_samples=5744 avg_buffering=5566.542968
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5571.588378
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 463 samples
DEBUG: [Audio] buffered_samples=5983 avg_buffering=5567.976074
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5572.977050
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 463 samples
DEBUG: [Audio] buffered_samples=5983 avg_buffering=5569.321289
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5574.279785
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] buffered_samples=5744 avg_buffering=5564.083496
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 463 samples
DEBUG: [Audio] buffered_samples=5983 avg_buffering=5560.706054
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5558.434082
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 223 samples
DEBUG: [Audio] buffered_samples=5743 avg_buffering=5547.732910
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5553.366210
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 463 samples
DEBUG: [Audio] buffered_samples=5983 avg_buffering=5550.323730
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5548.375976
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] buffered_samples=5504 avg_buffering=5531.489257
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 687 samples
DEBUG: [Audio] buffered_samples=6207 avg_buffering=5536.130371
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5542.126464
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 463 samples
DEBUG: [Audio] buffered_samples=5983 avg_buffering=5539.435058
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] buffered_samples=5744 avg_buffering=5530.327636
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5536.504882
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 463 samples
DEBUG: [Audio] buffered_samples=5983 avg_buffering=5533.989257
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5540.052246
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 223 samples
DEBUG: [Audio] buffered_samples=5743 avg_buffering=5529.925781
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5528.615722
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5527.346679
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 943 samples written to buffer
DEBUG: [Audio] buffered_samples=5503 avg_buffering=5510.117187
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 687 samples
DEBUG: [Audio] buffered_samples=6207 avg_buffering=5516.394531
VERBOSE: [Audio] Buffering: target=2400 avg=5516.394531 cur=6207 compensation=-3116
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] buffered_samples=5744 avg_buffering=5508.007324
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5515.882324
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5523.511230
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] buffered_samples=5744 avg_buffering=5514.901367
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5522.560546
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5522.480468
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5521.402832
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5513.858886
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5521.550781
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5520.502441
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5520.486816
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5527.971679
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] buffered_samples=5744 avg_buffering=5519.222656
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5519.247070
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5511.770507
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5518.527832
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5511.073730
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5518.852539
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5517.888183
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5510.454101
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5510.752441
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5510.041503
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5510.352539
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5510.653808
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5517.445800
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5517.525390
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5510.102539
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5516.911621
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5517.008300
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5517.101562
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5516.192382
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5516.311523
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5508.926757
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5515.772949
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5515.905273
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5516.033203
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] buffered_samples=5744 avg_buffering=5507.657226
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5515.542968
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5508.182128
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5507.551269
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5507.940429
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5515.817382
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5522.448242
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5522.371582
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5514.797363
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5513.959960
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5514.148925
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5514.331542
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5513.508789
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5513.711425
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5513.907714
VERBOSE: [Audio] Buffering: target=2400 avg=5513.907714 cur=5985 compensation=-3113
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5506.598144
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5506.017089
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5513.954101
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5506.643066
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5506.060546
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5513.996093
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5514.183593
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5520.865234
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5513.338378
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5513.546386
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5512.748046
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5520.474609
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5512.959960
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5512.180175
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5504.924316
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5512.895507
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5512.117675
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5512.363769
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5512.602539
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] buffered_samples=5744 avg_buffering=5504.333496
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5504.823242
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5512.797363
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5513.022460
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5512.240722
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5519.983398
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5512.483886
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5511.718750
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5511.977539
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5504.728027
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5511.705078
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5511.964355
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5504.715332
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5511.692871
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5504.452636
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5504.938476
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5504.409179
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5504.896484
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5512.868652
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5512.091308
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5512.338378
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5512.577636
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5520.309570
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 224 samples
DEBUG: [Audio] buffered_samples=5744 avg_buffering=5511.799804
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5512.056152
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5512.304199
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5511.544921
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5504.309082
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5504.799316
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 704 samples
DEBUG: [Audio] buffered_samples=6224 avg_buffering=5511.774414
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5504.531250
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5505.014648
VERBOSE: [Audio] Buffering: target=2400 avg=5505.014648 cur=5985 compensation=-3105
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 944 samples written to buffer
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] Buffering threshold exceeded, skipping 464 samples
DEBUG: [Audio] buffered_samples=5984 avg_buffering=5504.482910
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 465 samples
DEBUG: [Audio] buffered_samples=5985 avg_buffering=5504.967773
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG: [Audio] Buffering threshold exceeded, skipping 705 samples
DEBUG: [Audio] buffered_samples=6225 avg_buffering=5512.937499
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: User requested to quit
DEBUG: quit...
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] 945 samples written to buffer
DEBUG:[server] DEBUG: Controller stopped
 [Audio] SDL callback requests 240 samples
DEBUG: Demuxer 'video': end of frames
DEBUG: Receiver stopped
DEBUG: [Audio] Buffering threshold exceeded, skipping 225 samples
DEBUG: [Audio] buffered_samples=5745 avg_buffering=5505.658203
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: Demuxer 'audio': end of frames
DEBUG: [Audio] SDL callback requests 240 samples
DEBUG: [Audio] SDL callback requests 240 samples
WARN: Killing the server...
DEBUG: Server disconnected
DEBUG: Server terminated

@rom1v
Copy link
Collaborator

rom1v commented Mar 12, 2023

The audio callback is not called frequently enough by SDL to consume the samples.

Let's try with a bigger audio output buffer:

diff --git a/app/src/audio_player.c b/app/src/audio_player.c
index bba39acbf..1f2614dd1 100644
--- a/app/src/audio_player.c
+++ b/app/src/audio_player.c
@@ -5,7 +5,7 @@
 
 #include "util/log.h"
 
-#define SC_AUDIO_PLAYER_NDEBUG // comment to debug
+//#define SC_AUDIO_PLAYER_NDEBUG // comment to debug
 
 /**
  * Real-time audio player with configurable latency
@@ -59,7 +59,7 @@
 #define SC_AV_SAMPLE_FMT AV_SAMPLE_FMT_FLT
 #define SC_SDL_SAMPLE_FMT AUDIO_F32
 
-#define SC_AUDIO_OUTPUT_BUFFER_MS 5
+#define SC_AUDIO_OUTPUT_BUFFER_MS 10
 
 #define TO_BYTES(SAMPLES) sc_audiobuf_to_bytes(&ap->buf, (SAMPLES))
 #define TO_SAMPLES(BYTES) sc_audiobuf_to_samples(&ap->buf, (BYTES))
  • scrcpy.exe SHA-256: fa907e4529fcab80f316f21462a28548578bc912230171e88bd740ad4a25fc5b

@BillVGN
Copy link
Author

BillVGN commented Mar 12, 2023

Wow! That did the trick!

No more robotic sound. Simply pure and smooth audio as should be.
Are you releasing it as a hotfix or new version? Looking forward to it.

Thanks a lot, man!

@BillVGN BillVGN closed this as completed Mar 12, 2023
@rom1v
Copy link
Collaborator

rom1v commented Mar 12, 2023

I think I will keep 5ms by default, but add an option (e.g. --audio-output-buffer=10) to adjust it when necessary.

@rom1v
Copy link
Collaborator

rom1v commented Mar 12, 2023

I submitted an issue on SDL to get more feedback about the problem: libsdl-org/SDL#7450

@rom1v
Copy link
Collaborator

rom1v commented Mar 12, 2023

Could please you try the official release with a different audio driver: #3799

@BillVGN
Copy link
Author

BillVGN commented Mar 12, 2023

Could please you try the official release with a different audio driver: #3799

Directsound sounded as robotic as before (no pun intended)

WinMM was even worse...

As per wiki SDL v2.0 is being used, right? So it does not make sense trying other drivers for v1.2, I guess...

Edit: I don't know if I messed anything up, but I tried that binary you offered me before and now it is robotic as well, but a tiny bit less...

@tordenflesk
Copy link

set SDL_AUDIODRIVER=directsound and adding --audio-buffer=200 to my command line fixed it for me.

rom1v added a commit that referenced this issue Mar 13, 2023
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, but
if it does not work well, the user needs a way to increase it.

Refs #3793 <#3793>
@rom1v
Copy link
Collaborator

rom1v commented Mar 13, 2023

On a branch, I implemented an option --audio-output-buffer.

Please restore the original scrcpy-server in the v2.0 release. Confirm that you get a robotic sound.

Then replace this binary:

  • scrcpy.exe SHA-256: ba21fc3966aec8423ff51baf96e7fe046b4310c3cd3b2d5525db128014cc468c

Confirm that you still get a robotic sound.

Then execute scrcpy --audio-output-buffer=10, and confirm that it works as expected.

Thank you

@tordenflesk
Copy link

Yes, works.

rom1v added a commit that referenced this issue Mar 14, 2023
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, but
if it does not work well, users need a way to increase it.

Refs #3793 <#3793>
rom1v added a commit that referenced this issue Mar 14, 2023
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, but
if it does not work well, users need a way to increase it.

Refs #3793 <#3793>
rom1v added a commit that referenced this issue Mar 14, 2023
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 <#3793>
@rom1v
Copy link
Collaborator

rom1v commented Mar 14, 2023

I merged this new option --audio-output-buffer into dev: 39544f3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants