Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there any way i can use this on windows? #28

Open
pranshuthegamer opened this issue Jan 10, 2021 · 3 comments
Open

is there any way i can use this on windows? #28

pranshuthegamer opened this issue Jan 10, 2021 · 3 comments

Comments

@pranshuthegamer
Copy link

i want to use this on windows but i have android 7.1.2

@rom1v
Copy link
Owner

rom1v commented Jan 10, 2021

No.

@djalilhebal
Copy link

djalilhebal commented Feb 5, 2021

Yesterday, I tested this project on Linux (Ubuntu 18.04 x64) and found it to be useful.
I personally didn't need to play audio from my phone, but to use it as a microphone, so I ended up using @bitplane's Microphone and your program (usbaudio --no-play --device 04e8:6860).

I wanted to share it with my Windows-using fellow students and thought of the following:

This program depends on libusb (which is cross-platform) and libpulse (Linux-only, AFAIK), while others are either cross-platform or have been ported (e.g. getopt.h as in this Stack Overflow answer).

  1. When building for/on Windows, you could (conditionally) remove PulseAudio's stuff (i.e. pulse.h, pulse.c, and its dependency entry from meson.build) and replace int pulse_get_device_number(const char *serial)) with a no-op function that simply returns -1 (the error code).

  2. Windows users should just run usbaudio with the --no-play option. (We just need it to enable audio forwarding.)

  3. Finally, Windows users should feed audio from the new "USB audio input device" (the Android phone in accessory mode) to their speakers or headsets. (It is possible to do this natively since at least Windows 7 as mentioned in Super User, and the same method works on Windows 10 as shown in this video.)

PS: Perhaps the third step can be automated.

What do you think, @rom1v ?

@pranshuthegamer
Copy link
Author

pranshuthegamer commented Feb 5, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants