• Home
Name Date Size #Lines LOC

..--

.gitignoreD03-May-202423 43

MakefileD03-May-2024256 138

README.mdD03-May-2024696 3122

client_socket.cppD03-May-20242.8 KiB11480

client_socket.hD03-May-20241.4 KiB5829

play_audio.cppD03-May-20243.3 KiB11077

sdl_wrapper.cppD03-May-20242.1 KiB7644

sdl_wrapper.hD03-May-20241.3 KiB5627

README.md

1# Play Audio
2
3Audio receiver for a cuttlefish instance. A binary to play audio from a remote
4Android virtual device.
5
6## Install Dependencies
7
8```
9git clone https://github.com/google/opuscpp
10sudo apt install libsdl2-2.0-0 libsdl2-dev libopus-dev libopus0 libgflags-dev libgoogle-glog-dev
11```
12
13## Build
14
15```
16make
17```
18
19## Run
20Use ssh port forwarding to forward `7444` from a running instance. Then run the
21`play_audio` binary.
22
23```
24./play_audio
25```
26
27If you are running multiple virtual devices on a host, you must pass the
28`device_num` flag to specify the device corresponding to the `vsoc-##` username,
29and you will have to add `1 - device_num` to the port that you forward (vsoc-02
30= port 7445).
31