Romain Vimont
Romain Vimont
As suggested by [Juan](https://blog.rom1v.com/2018/03/introducing-scrcpy/#comment-29), one possibility to investigate is using [AOA](https://source.android.com/devices/accessories/aoa2). I already implemented something using HID over AOA in the past (I even have a publicly available [sample](https://github.com/rom1v/aoa-hid-bug)), it...
I just implemented a PoC (separated of _scrcpy_) to enable audio forwarding from the device to the computer: [aoa-audio](https://github.com/rom1v/aoa-audio). On _Debian_ stable, it "works": the device sound is played on...
[`AudioRecord`](https://developer.android.com/reference/android/media/AudioRecord.html#AudioRecord(int,%20int,%20int,%20int,%20int)) may only record [input sources](https://developer.android.com/reference/android/media/MediaRecorder.AudioSource.html) (like microphone), not the device audio output.
Oh, you're right, I missed the [`REMOTE_SUBMIX`](https://developer.android.com/reference/android/media/MediaRecorder.AudioSource.html#REMOTE_SUBMIX) audio source.
Arf, just calling `new AudioRecord(…)` segfaults, probably because there is no `Context` (`fault addr 0x0`). _Note that `AudioRecord` itself does not require a `Context` explicitly._
Even from an app, the source [`REMOTE_SUBMIX`](https://developer.android.com/reference/android/media/MediaRecorder.AudioSource.html#REMOTE_SUBMIX) does not work: AudioRecord: Could not get audio input for record source 8, sample rate 44100, format 0x1, channel mask 0xc, session 73,...
Hi, I would like to share with you my work-in-progress branch: [`audio`](https://github.com/Genymobile/scrcpy/commits/audio). _This branch can be rebased/rewritten at any time._ I implemented it, and it works fine for me! :tada:...
In theory, it should now also work on Windows (in MSYS2/mingw64), with the `libusb` package: pacman -S mingw-w64-x86_64-libusb However, when it try to communicate to open the device over USB...
Thank you for the test :+1: > Selecting input audio source: Built-in Microphone It did not select the right input source, either because none were created, either because for now...
@eyal-lezmy I investigated on Mac, and it appears that enabling "audio accessory" on the device does not create a new audio input source on the computer. So unfortunately, I think...