Giter Site home page Giter Site logo

I can't play any sound. about sndcpy HOT 9 OPEN

rom1v avatar rom1v commented on May 21, 2024
I can't play any sound.

from sndcpy.

Comments (9)

rom1v avatar rom1v commented on May 21, 2024 1

What app do you use on the device? Some apps do not authorize to capture their audio: https://github.com/rom1v/sndcpy#apps-restrictions

from sndcpy.

rom1v avatar rom1v commented on May 21, 2024

Did you have the popup on the device and authorized to capture sound, before pressing Enter in the terminal?

from sndcpy.

soscaster avatar soscaster commented on May 21, 2024

Did you have the popup on the device and authorized to capture sound, before pressing Enter in the terminal?

Yes I have. A huge popup and I authorized it. I can use the scrcpy but not the sndcpy.

from sndcpy.

yulose9 avatar yulose9 commented on May 21, 2024

Did you have the popup on the device and authorized to capture sound, before pressing Enter in the terminal?

Yes I have. A huge popup and I authorized it. I can use the scrcpy but not the sndcpy.

We do have the same problem I've tried running scrcpy and load the bat file of sndcpy. It did install and app and asked for permission but still didn't play any audio I tried updating my VLC to latest version and still doesn't work

My device is Mi9T Pro running the latest MIUI 12 Global Stable

from sndcpy.

CrescentKohana avatar CrescentKohana commented on May 21, 2024

Possibly same problem here (Android 10 / OnePlus 7). Tried with Windows 10 Pro 64bit and Arch Linux 5.7.8-arch1-1.

Connection is succesful and VLC (also tried mpv) does play something but no audio can be heard. I tried playing a video file (mp4) through Chrome, music through AIMP and the main menu of Fate/Grand Order game. No sound with any of these. I tried to record Fate normally just with a recording app, and that worked, so there are no restrictions in play here.

Also, I've tried the latest adb and the one which comes with the Windows binary.

from sndcpy.

rom1v avatar rom1v commented on May 21, 2024

Does it work with the youtube app or VLC for Android?

from sndcpy.

rom1v avatar rom1v commented on May 21, 2024

I tried to record Fate normally just with a recording app, and that worked

Does this recording app use the Android 10 capture API? Which app is it?

Maybe something to add here:

confBuilder.addMatchingUsage(AudioAttributes.USAGE_MEDIA);
confBuilder.addMatchingUsage(AudioAttributes.USAGE_GAME);
confBuilder.addMatchingUsage(AudioAttributes.USAGE_UNKNOWN);

?

from sndcpy.

CrescentKohana avatar CrescentKohana commented on May 21, 2024

Does it work with the youtube app or VLC for Android?

Yes, I got it working with YouTube.

Does this recording app use the Android 10 capture API? Which app is it?

I'm using OxygenOS's internal recording app. Just tried a 3rd party app, AZ Screen Recorder, and it's not picking up any game audio. Probably should've tested that first.

from sndcpy.

CrescentKohana avatar CrescentKohana commented on May 21, 2024

Possibly add couple example apps to the README which are known to function (eg. YouTube), so people can quickly test that everything works?

Anyway, no problem with sndcpy itself 😅.

//Edit
I'm guessing OnePlus (it seems Samsung and some Xiaomi phones have this as well) is using different methods to record the audio. Those are probably not available to app developers.

Probably this one here.

from sndcpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.