-
Notifications
You must be signed in to change notification settings - Fork 21
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
Audio in graphical session #31
Labels
question
Further information is requested
Comments
I'll think about it but it is not a priority now... |
pulseaudio tcp & rtp serverRun this script#!/bin/sh
set -eu
## Make sure module-native-protocol-tcp is loaded on android for pactl to work
if ! (pactl list modules short | grep -q -e module-native-protocol-tcp); then
if pulseaudio --check; then
pulseaudio --kill
fi
pulseaudio --exit-idle-time=-1 --daemonize=true --load="module-native-protocol-tcp"
fi
## Check if module is loaded before unloading
pactl_better_unload_module() {
if (pactl list modules short | grep -q -e "$1"); then
pactl unload-module "$1"
fi
}
## tcp sender
pactl_better_unload_module module-simple-protocol-tcp
pactl load-module module-simple-protocol-tcp source=auto_null.monitor rate=48000 channels=2 format=s16le record=true listen=127.0.0.1 port=4010
## rtp sender
pactl_better_unload_module module-rtp-send
pactl load-module module-rtp-send source=auto_null.monitor rate=48000 channels=2 mtu=320 destination=127.0.0.1 port=4010 Or add your pulseaudio configuration
and run pulseaudio --exit-idle-time=-1 --daemonize=true |
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are there any suggestions for how audio might work in a proot graphical session? I tried running pulseaudio and pacmd unsuccessfully in a Debian bullseye session. I thought I might be able to stream to the app pulsedroid. Thanks!
The text was updated successfully, but these errors were encountered: