scrcpy/app
Romain Vimont 047b54b9fe Add audio player
Play the decoded audio using SDL.

The audio player frame sink receives the audio frames, resample them
and write them to a byte buffer (introduced by this commit).

On SDL audio callback (from an internal SDL thread), copy samples from
this byte buffer to the SDL audio buffer.

The byte buffer is protected by the SDL_AudioDeviceLock(), but it has
been designed so that the producer and the consumer may write and read
in parallel, provided that they don't access the same slices of the
ring-buffer buffer.

PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757>

Co-authored-by: Simon Chan <1330321+yume-chan@users.noreply.github.com>
2023-03-06 09:58:02 +01:00
..
data Add --list-displays 2023-03-06 09:58:02 +01:00
prebuilt-deps Upgrade FFmpeg custom builds for Windows 2023-03-03 21:09:21 +01:00
src Add audio player 2023-03-06 09:58:02 +01:00
tests Add two-step write feature to bytebuf 2023-03-06 09:58:02 +01:00
meson.build Add audio player 2023-03-06 09:58:02 +01:00
scrcpy-windows.manifest Set DPI awareness for Windows 2021-12-20 19:13:02 +01:00
scrcpy-windows.rc Bump version to 1.25 2022-12-22 12:33:29 +01:00
scrcpy.1 Add --list-displays 2023-03-06 09:58:02 +01:00