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
No sound. #371
Comments
To be able to use sound.
The reliable way is to combine Termux project with Userland.
Install Debian or Ubuntu as usual. Install Termux from google Play store.
When you install Termux app
type
pkg install pulseaudio
add to The /etc/profile
The following lines. Place them at The last line of this Bash script
after last fi word. On The last empty line inside this script.
pulseaudio --start --exit-idle-time=-1
pacmd load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1
auth-anonymous=1
On yours Userland installed distribution.
Add this as non root user.
echo "export PULSE_SERVER=\"127.0.0.1\"" >> ~/.bashrc
You can install Pulseaudio by typing
sudo apt install pulseaudio
And sound should work.
This approach is also compatible with Xserver XSDL on Google Play, since
Xserver XSDL build in Pulseaudio support do not read this variable.
But please be tolerant. Even this stable approach produces little time
delay. But sound is not distorted and even text to speech synthesizers
work without random crashes.
|
@JanuszChmiel |
Thank you for your assistance, we really appreciate it. Getting sound to work seamlessly in UserLAnd is still an ongoing project we are working to address. |
I have done everything I mentioned and did not work, it shows me a mistake [E: [pulseaudio] main.c: Too many arguments.] But I do not know if you run the sound over the following command, [export PULSE_SERVER=tcp:127.0.0.1:4712] but it does not work if the xsdl application becomes in the background of the flag I used for Termux and works on Userland also, but Userland is relatively obsolete on the Termux on my phone, I have used a compiler to reply and can contain errors in sentences that carry me a bit 😀😀 Thank you ... |
For anyone that have the error "too many arguments", just put those 2 on 2 separate lines like this: pulseaudio --start --exit-idle-time=-1 pacmd load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1 |
I have forgotten one very important think on my previous older post. Instal sox to The Termux environment. Convincing PUlseaudio developers to do that will be very probably non easy way of discussion. Pulseaudio is mainly for standard PCI based computers and for standard Linux, which is not based on restricted userspace variant, where udev do not work.
#include <SLES/OpenSLES.h> BufferQueueItf playerBufferqueue; static void callback(BufferQueueItf caller, void *context) #define MAX_BUFF_SIZE 4096
} // this callback handler is called every time a buffer finishes playing int main(int argc, char **argv)
} |
Thanks to The following article on The following WEB address, I have been able to use several Android players which are capable to play by using simple protocol. http://kaytat.com/?page_id=301 It is necessary to also uncomment The # character before The line in The file /etc/pulse/default.pa pulseaudio --start --exit-idle-time=-1 & |
Latest up to date version of Xserver XSDL even allow to disable build in Pulseaudio daemon to prevent conflicts between Pulseaudio whivch run from Termux session. Sure, you can also try to use Unix sockets instead IP sockets.
I will try to find The lines to do that. Also keep in mind, that Linux distributions are being updated very fast and unfortunately, in some cases, previously functioning procedures do not work now.
I will look at Userland now. Because also their developers can make some complex changes inside their variants of Proot. Proot of Userland is not The same Proot like in Termux.
C app is specially recoded to work as native .so library and Proot of Userland lack some work arounds, which are The part of Proot for Termux. But this should never have negative effect on sound support.
|
If you want to try Unix sockets instead, read this thread.
https://groups.io/g/termux/topic/69673556
|
I am using ubuntu with xfce but sounds are not working, videos works fine on youtube on firefox.
I am curious if that is even an issue or just a feature planned for future?
The text was updated successfully, but these errors were encountered: