linuxdeploy icon indicating copy to clipboard operation
linuxdeploy copied to clipboard

Getting Audio in chroot

Open dojoko55 opened this issue 13 years ago • 11 comments

Thank you for this wonderful app. Love it so far. This is not really an issue, but I'm curious as to how to get sound working so I would have something like ice weasel running gnash in the background while I read something else. Practically I'm trying to get around Android's multitasking deficiency with the help of your app :-). So far I've got alsa installed but its not working. I'm also running androidVNC, so I'm unsure if that's the problem. Can you please post a guide on how to enable this, or include a script to configure it automatically in LinuxDeploy?

dojoko55 avatar Jul 12 '13 15:07 dojoko55

I found someone's hack for it which may help : http://android.stackexchange.com/questions/12607/how-to-play-record-sound-from-debian-chroot. . I have no idea how to it,so I wait for your opinion on this.

dojoko55 avatar Jul 12 '13 17:07 dojoko55

2-OK one more thing, could you configure for a shared folder so it would be possible to move things between chrooted Gnu/linux and Android? Thanks again.

dojoko55 avatar Jul 12 '13 17:07 dojoko55

  1. Audio works out of box on some devices. Maybe this will help, you need to try.
  2. Check Properties -> Custom mount, and change path in Properties -> Mount path.

meefik avatar Jul 13 '13 11:07 meefik

You are right audio worked right away with my S3, but with a KDE environment installed instead of LXDE.

The folder mounting is working flawlessly. Thank you so much.

dojoko55 avatar Jul 13 '13 17:07 dojoko55

Is there any universal solution for audio?

felonwan avatar Sep 08 '14 17:09 felonwan

What directory do I mount for Sony Xperia Z Tablet?

okumedia avatar Feb 26 '16 15:02 okumedia

Pretty good workaround: https://androidforums.com/threads/how-to-getting-audio-working-inside-a-chroot.924537/ It is about getting audio using PulseAudio network transparency. How to setup PA to stream audio at TCP port and play it on Android using regular application from PlayMarket - Simple Protocol Player.

cepreu2github avatar Mar 30 '17 04:03 cepreu2github

Tried that before. Didn't work for me.

okumedia avatar Apr 14 '17 03:04 okumedia

You can use XServer XSDL. It has builtin Pulseaudio. Another option is to use Termux's pulseaudio build. Or you can build bionic Pulseaudio using this git: https://github.com/twaik/pulseaudio-sles-ndk

twaik avatar Aug 21 '18 17:08 twaik

Is it possible to for alsa-utils to work? I want to run Ardour. My device keeps restarting while trying, like something is clashing with Android System Audio. Pulseaudio works with XSDI but Ardour runs only with alsa.

okumedia avatar Feb 05 '19 07:02 okumedia

Okumedia, I have the same issue. Look at my post here: https://github.com/meefik/linuxdeploy/issues/1071

anonimo82 avatar Mar 23 '19 10:03 anonimo82