Home | History | Annotate | only in /device/google/cuttlefish_common/tools/play_audio
Up to higher level directory
NameDateSize
client_socket.cpp22-Oct-20202.8K
client_socket.h22-Oct-20201.4K
Makefile22-Oct-2020256
play_audio.cpp22-Oct-20203.3K
README.md22-Oct-2020696
sdl_wrapper.cpp22-Oct-20202.1K
sdl_wrapper.h22-Oct-20201.3K

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