Commit Graph

64 Commits (d2952c7e93f151d773f38aa368b7163b0ff31cf2)

Author SHA1 Message Date
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>
2 years ago
Romain Vimont 4c43784fd1 Update links to v1.25 2 years ago
Romain Vimont 64821466a1 Use "meson setup"
This fixes the following warning:

> WARNING: Running the setup command as `meson [options]` instead of
> `meson setup [options]` is ambiguous and deprecated.
2 years ago
Romain Vimont faf4535487 Reduce SHA-256 size in README and BUILD
This avoids breaking the page layout on GitHub.
2 years ago
Romain Vimont 3a99e129e6 Update links to v1.24 2 years ago
Romain Vimont 0049893e10 Merge branch 'master' into dev 2 years ago
Romain Vimont 471a360099 Use quotes for commands in documentation 2 years ago
Romain Vimont 349dcd8e7b Update installed files list in BUILD documentation 2 years ago
Sean Wei a90dfb46bc Fix GitHub case in BUILD
Replace "Github" with "GitHub".

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

Signed-off-by: Romain Vimont <rom@rom1v.com>
2 years ago
Romain Vimont 49434da36e Update links to v1.23 3 years ago
Romain Vimont 6b65cd405a Build for Windows with libusb support
Fixes #2773 <https://github.com/Genymobile/scrcpy/issues/2773>
PR #3011 <https://github.com/Genymobile/scrcpy/pull/3011>
3 years ago
Romain Vimont 33202491e1 Build on macOS with libusb support
Fixes #2774 <https://github.com/Genymobile/scrcpy/issues/2774>
PR #3031 <https://github.com/Genymobile/scrcpy/pull/3031>
3 years ago
Romain Vimont c00a31f1b0 Pass --buildtype=release as a single meson arg
For consistency with the other arguments
3 years ago
Romain Vimont f4c7044b46 Update links to v1.22 3 years ago
Romain Vimont cb8713eb1f Update links to v1.21 3 years ago
Alex Burdusel 02ae0db6cd Fix wrong package to install for Ubuntu/Debian
Without this package, meson fails:

    Run-time dependency libusb-1.0 found: NO (tried pkgconfig and cmake)
    app/meson.build:88:8: ERROR: Dependency "libusb-1.0" not found, tried pkgconfig and cmake

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

Signed-off-by: Romain Vimont <rom@rom1v.com>
3 years ago
Romain Vimont 65b023ac6d Update links to v1.20 3 years ago
Alynx Zhou 207082977a Add support for USB HID keyboard over AOAv2
This provides a better input experience, by simulating a physical
keyboard. It converts SDL keyboard events to proper HID events, and send
them over AOAv2.

This is a rewriting and bugfix of the origin code from @amosbird:
<https://github.com/Genymobile/scrcpy/issues/279#issuecomment-453819354>

The feature is enabled the command line option -K or --hid-keyboard,
and is only available on Linux, over USB.

Refs <https://source.android.com/devices/accessories/aoa2#hid-support>
Refs <https://www.usb.org/sites/default/files/hid1_11.pdf>

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

Signed-off-by: Romain Vimont <rom@rom1v.com>
3 years ago
Romain Vimont 069fe93f74 Update links to v1.19 3 years ago
Romain Vimont 376201a83c Update links to v1.18 in README and BUILD 3 years ago
Romain Vimont 8fb5715740 Add libavdevice-dev in BUILD instructions
On Linux, scrcpy now depends on libavdevice for v4l2.
3 years ago
Andrea Gelmini 498ad23e98 Fix typos
PR #2263 <https://github.com/Genymobile/scrcpy/pull/2263>

Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
Romain Vimont 2812de8a9a Update brew java version to JDK 11
Refs f8524a2be7
Refs 7b51a0313e
4 years ago
quyleanh d50c678a5f Update brew cask documentation
The command `brew cask` has been deprecated:
<https://github.com/Homebrew/discussions/discussions/340#discussioncomment-232364>

Should be `brew install` directly now.

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

Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
Romain Vimont b77932a5b7 Add instructions to uninstall 4 years ago
Romain Vimont 47d16a57ac Add simplified installation script
Add a script to download the server and build scrcpy using the
prebuilt server.
4 years ago
Ray Foss fc5de88eaa Clarify the order of operations in BUILD.md
PR #2223 <https://github.com/Genymobile/scrcpy/pull/2223>

Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
Romain Vimont fda293f9bb Fix BUILD.md line wrapping 4 years ago
Romain Vimont 38f392f08f Fix typo in BUILD.md 4 years ago
Romain Vimont 7b51a0313e Update another java version in BUILD.md
Commit f8524a2be7 updated one reference to
the openjdk package, but there was another one.
4 years ago
Romain Vimont a2919b3ef2 Fix release instructions in BUILD.md
Makefile.CrossWindows have been renamed to release.mk, which is called
from release.sh.
4 years ago
Michael Richardson f8524a2be7 Update java version in BUILD.md
PR #2064 <https://github.com/Genymobile/scrcpy/pull/2064>

Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
Romain Vimont c5c5fc18ae Update links to v1.17 in README and BUILD 4 years ago
Romain Vimont 479d10dc22 Update links to v1.16 in README and BUILD 4 years ago
Romain Vimont f03a3edde6 Update links to v1.15.1 in README and BUILD 4 years ago
Romain Vimont 521f2fe994 Update links to v1.15 in README and BUILD 4 years ago
NGAU Zeonfung 5086e7b744 Update BUILD.md
Update the macOS section.

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

Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
Romain Vimont ef91ab2841 Update links to v1.14 in README and BUILD 4 years ago
Romain Vimont 4e9e712312 Update links to v1.13 in README and BUILD 4 years ago
Romain Vimont cdd8edbbb6 Add a note about prebuilt server in BUILD.md
Mention that it works with a matching client version.
5 years ago
Romain Vimont 9b9e717c41 Explain master and dev branches in BUILD
People may not guess that `master` is not the development branch.
5 years ago
Romain Vimont 31bd95022b Update links to v1.12.1 in README and BUILD 5 years ago
Romain Vimont 71df3175bd Update links to v1.12 in README and BUILD 5 years ago
Seb Leo 684e0abb74 Update BUILD.md to install adb package
PR <https://github.com/Genymobile/scrcpy/pull/965>

Signed-off-by: Romain Vimont <rom@rom1v.com>
5 years ago
Romain Vimont 40c3c57613 Update links to v1.11 in README and BUILD 5 years ago
Romain Vimont 0415672a75 Merge branch 'master' into dev 5 years ago
Romain Vimont 3ea4742321 Call ninja without changing directory
In build instructions, use:

    ninja -Cx ...

instead of:

    cd x
    ninja ...
5 years ago
Romain Vimont 3da95b52bd Rename scrcpy-server.jar to scrcpy-server
The server name ending with .jar has several drawbacks:
 - meson requires the jar executable to attempt to modify it:
     <https://github.com/Genymobile/scrcpy/issues/404#issuecomment-456065923>
     <https://github.com/mesonbuild/meson/issues/4844>
 - meson warns during "ninja install"
     <https://github.com/Genymobile/scrcpy/issues/458>
 - some users try to execute it on the computer as a java executable

Removing the extension solves all these problems.
5 years ago
Romain Vimont f510f1de1c Remove "make" from build dependencies
The project is built with meson+ninja.
5 years ago
Romain Vimont 9bcee4ea42 Update links to v1.10 in README and BUILD 5 years ago