sndcpy icon indicating copy to clipboard operation
sndcpy copied to clipboard

No sound on the computer

Open Dennis-Ding1 opened this issue 4 years ago • 16 comments

CMD seems to be nomal: 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... Playing audio...

But when I play audio on the phone, my computer didn't receive it. I mean, the computer didn't play the sound on the phone.

And the app "sndcpy" on my phone displays "Waiting for connect". Waiting for connection I don't know if it is correct.

Dennis-Ding1 avatar Aug 17 '20 10:08 Dennis-Ding1

Remove -Idummy here to see if there is a problem with VLC:

https://github.com/rom1v/sndcpy/blob/f0995ca4d0002ef288c74c70d4c0eb48354449d5/sndcpy.bat#L25

rom1v avatar Aug 17 '20 15:08 rom1v

Having the same problem, tried removing the -Idummy flag and VLC is indeed opening, it's connecting to a stream, CTRL+M isn't showing any errors or messages, but there is no audio. Have tried multiple apps, all nothing.

Tyr808 avatar Aug 20 '20 10:08 Tyr808

Have tried multiple apps, all nothing.

Did you try youtube and VLC for Android? They are known to forward audio correctly.

rom1v avatar Aug 20 '20 16:08 rom1v

Have tried multiple apps, all nothing.

Did you try youtube and VLC for Android? They are known to forward audio correctly.

Nothing from either YouTube or VLC unfortunately. Everything seems to be running on Android properly as far as I can tell, I've got a Mi Mix 2 (chiron) on Lineage OS 17.1 which is an Android 10 rom. Any kind of detailed log I could gather to help troubleshoot this either on the PC or Android side of things?

P.S. for what it's worth, srccpy is working perfectly fine via USB, it's just the sndcpy part I'm struggling with

P.P.S. for the sake of science, I tried the ffplay suggestion another user had in a different thread and modified the batch file to use that instead. It LOOKS like it's doing stuff and configured properly, but I'm also not that experienced with ffplay and not a dev, more of a "power user" that is decent enough at troubleshooting and testing variables. I included a screenshot of the command prompt window I was using for this to see if it helps anything. I still wasn't actually hearing anything on my PC and I did of course make sure I was using the default audio device and that other applications were capable of outputting audio. I could hear audio from the phone speaker, but nothing coming through the PC. I'm wondering if there is simply some bug or limitation on my phone that is preventing the audio image

Tyr808 avatar Aug 23 '20 16:08 Tyr808

I am getting sound from other streaming apps except from VLC when i try to play from local audio/video, tried to remove -Idummy flag still same, using from device Realme 3 Pro... logs from terminal and i see no errors either

Waiting for device... 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... VLC media player 3.0.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d) [00005640132028b0] dummy interface: using the dummy interface module...

Dinesh08 avatar Sep 04 '20 19:09 Dinesh08

VLC seems playing, but no sound on the computer Screenshot from 2020-09-05 14-08-42

janlely avatar Sep 05 '20 06:09 janlely

VLC seems playing, but no sound on the computer Screenshot from 2020-09-05 14-08-42

Are u able to hear from YT and other streaming apps?

Dinesh08 avatar Sep 05 '20 06:09 Dinesh08

i met the same as janlely ,

ShiverZm avatar Sep 09 '20 10:09 ShiverZm

Just updated my device from a Xiaomi Mi Mix 2 to a Pixel 4a. Mi Mix 2 was on LineageOS 17 (android 10), Pixel 4a is on official android 11. Audio works with pixel 4a, with my same FFmpeg configuration, still doesn't work on my Mi Mix 2. It could be a limitation of the hardware or a software bug, not sure. @rom1v , if there is a way I can run a detailed log for you if you'd like to compare, let me know, I'd be happy to help.

Tyr808 avatar Sep 10 '20 03:09 Tyr808

@Tyr808 Thank you for your help.

However, sndcpy just uses the Playback capture API provided by the system.

The fact that it works on some devices or for some apps but not on others is an implementation issue of this API (by the device system), so there's nothing sndcpy could fix.

rom1v avatar Sep 10 '20 06:09 rom1v

  • I guess it works for Android 11 and forward. I had the same challenges using Android 10 and previous versions.
  • Taking out the -Idummy in the .bat file helped too.
  • Ensure you are using the correct installation files: especially WINDOWS users, the adb is necessary!
  • In Android studio, it's easier to have only one device at a time running!

evansmosomi avatar Apr 09 '21 03:04 evansmosomi

Just updated my device from a Xiaomi Mi Mix 2 to a Pixel 4a. Mi Mix 2 was on LineageOS 17 (android 10), Pixel 4a is on official android 11. Audio works with pixel 4a, with my same FFmpeg configuration, still doesn't work on my Mi Mix 2. It could be a limitation of the hardware or a software bug, not sure. @rom1v , if there is a way I can run a detailed log for you if you'd like to compare, let me know, I'd be happy to help.

@Tyr808 do you have the link to the modified batch file with ffplay?

evansmosomi avatar Apr 09 '21 03:04 evansmosomi

removing -Idummy and CHANGING VLC path to it's x86 folder ("C:\Program Files (x86)\VideoLAN\VLC\vlc.exe", and yes the default Program Files folder opened it as well, but not with sndcpy) did it for me.

And still Android Pie (9.0) here.

Ajnus avatar Dec 29 '21 14:12 Ajnus

And still Android Pie (9.0) here.

Don't even try.

The Android device requires at least Android 10.

https://github.com/rom1v/sndcpy#requirements

rom1v avatar Dec 29 '21 14:12 rom1v

And still Android Pie (9.0) here.

Don't even try.

The Android device requires at least Android 10.

https://github.com/rom1v/sndcpy#requirements

Indeed, I updated it.

Ajnus avatar Dec 29 '21 14:12 Ajnus

can i ask something what's the problem of this error? I new on this and idk how to fix it Cuplikan layar 2023-09-23 201507

tomannyanomaly avatar Sep 23 '23 13:09 tomannyanomaly