pelya / pulseaudio-android

PulseAudio server for Android, built as user-land executable, using NDK
Other
57 stars 9 forks source link

What exactly can you do with this? #5

Closed tobimensch closed 4 years ago

tobimensch commented 8 years ago

This project lacks a few more descriptive infos. What is it for? How can it be installed on my phone?

Would it be possible to provide prebuilt APKs?

pelya commented 8 years ago

This is for streaming audio from your Linux PC to your phone (or from your Linux chroot on your phone). It is bundled with XSDL X server, and currently won't work without XSDL. You can grab .apk file here: https://sourceforge.net/projects/libsdl-android/files/apk/XServer-XSDL/

tobimensch commented 8 years ago

It would great if this was working without XSDL. I think this is can be very useful. Thanks for the work.

tobimensch commented 8 years ago

I looked into XSDL now, and I see no information how to setup pulseaudio for this to work. Making it work together with an on the phone chroot environment is particularly interesting to me.

pelya commented 8 years ago

XSDL will print instructions when you launch it. You need to set env variable PULSE_SERVER=tcp::4712 on your Linux PC or inside chroot.

On Sun, Apr 3, 2016 at 3:45 AM, Tobi notifications@github.com wrote:

Reopened #5 https://github.com/pelya/pulseaudio-android/issues/5.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/pelya/pulseaudio-android/issues/5#event-612441451

pelya commented 8 years ago

You can also launch XSDL via Android intent, with predefined X display number, if you want to use it from inside chroot launcher, here's a sample code: https://github.com/pelya/xsdl-launcher-example

On Sun, Apr 3, 2016 at 1:37 PM, Sergii Pylypenko x.pelya.x@gmail.com wrote:

XSDL will print instructions when you launch it. You need to set env variable PULSE_SERVER=tcp::4712 on your Linux PC or inside chroot.

On Sun, Apr 3, 2016 at 3:45 AM, Tobi notifications@github.com wrote:

Reopened #5 https://github.com/pelya/pulseaudio-android/issues/5.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/pelya/pulseaudio-android/issues/5#event-612441451

xavier83 commented 7 years ago

Is XSDL a hard dependency for this port? If it is just to get the pulseaudio sink to work on android, would this OpenSL patch help avoid that dependency?

pelya commented 7 years ago

Yes, currently XSDL is required. I am going to switch to OpenSL eventually. I've seen this patch before, it does not work.

On Sun, Nov 6, 2016 at 6:38 PM, xavier83 notifications@github.com wrote:

Is XSDL a hard dependency for this port? If it is just to get the pulseaudio sink to work on android, would this OpenSL https://github.com/glance-/pulseaudio-android-ndk/blob/master/pulseaudio-patches/0003-WIP-opensl-sink.patch patch help avoid that dependency?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pelya/pulseaudio-android/issues/5#issuecomment-258692666, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJewDHqnxaPRzuHnAZZTekM2YFWEekaks5q7gJygaJpZM4H-Zzo .

xavier83 commented 7 years ago

Thanks. Looking forward to it :smile:

avodonosov commented 5 years ago

@pelya, it would also be great if the project allowed to stream sound from android to my linux server (where my applifier is connected)

pelya commented 5 years ago

You cannot capture audio output on Android, so it's not possible

On Tue, Nov 13, 2018, 01:21 Anton Vodonosov <notifications@github.com wrote:

@pelya https://github.com/pelya, it would also be great if the project allowed to stream sound from android to my linux server (where my applifier is connected)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pelya/pulseaudio-android/issues/5#issuecomment-438066224, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJewOhX9bhF6qiJ8LwzuvT2x4XCw_prks5uugJ4gaJpZM4H-Zzo .

avodonosov commented 5 years ago

@pelya , not even on Linux level? A driver? A virtual headset?

pelya commented 5 years ago

Some manufacturers would allow capturing internal audio on Android, and anything is possible with root, but currently your best option is to put volume level to maximum and capture microphone input in a quiet room.