scrcpy/app
Romain Vimont fbe0f951e1 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-10 22:22:15 +01:00
..
data Add --require-audio 2023-03-10 22:22:15 +01:00
prebuilt-deps Upgrade FFmpeg custom builds for Windows 2023-03-10 22:22:15 +01:00
src Add audio player 2023-03-10 22:22:15 +01:00
tests Remove sc_queue 2023-03-10 22:22:15 +01:00
meson.build Add audio player 2023-03-10 22:22:15 +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 --require-audio 2023-03-10 22:22:15 +01:00