sndcpy icon indicating copy to clipboard operation
sndcpy copied to clipboard

Sound not working: Connection refused by peer

Open Vinicius-Mance opened this issue 4 years ago • 0 comments

I've been using scrcpy no problems: flawlessly working since start However, sndcpy is another story. It NEVER worked properly.

When I run ./sndcpy It always returned for me this: Waiting for device... ./sndcpy: line 17: adb: command not found

So, I tried running with the sndcpy.bat file It works... until it doesn't

The result on the terminal is this: ./sndcpy.bat Waiting for device... Performing Streamed Install Success Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.rom1v.sndcpy/.MainActivity } Press Enter once audio capture is authorized on the device to start playing...

I do as it was told me to do: accept the app on the mobile device, and press Start now

It displays on the terminal: Playing audio...

It works! ...for a few seconds. Then the sound stops, and this is shown on my screen: [0000029bf8b1e670] dummy interface: using the dummy interface module... [0000029bf8c1a1b0] main stream error: connection error: Connection refused by peer [0000029bf8b0ad40] main playlist: end of playlist, exiting

Devices information: My computer system is Windows 10 Home 64bits (the device is a Acer Aspire 5) My android is Android 11 (the device is a Galaxy A10S)

Downloading process: I downloaded both the scrcpy and sndcpy via a .zip file I put them both in separated folders, with adb files in both folders Everything is on my SSD, and to make it easier to find, I put them all in the Program Files folder

Other ways I tried to make this work: In another folder, I tried to put them both in the same folder (downloading scrcpy with the adb file and sndcpy without the adb files). The result is the same.

Vinicius-Mance avatar Sep 24 '21 03:09 Vinicius-Mance