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