Comments (4)
Thanks for your message. Yes, this is a raspberry pi headless.
Success!
I was running pulse in daemon mode like pulseaudio -D
but instead I needed to run it like pulseaudio --start
and add as a systemd service.
Thanks again
from goplay2.
Hello,
The build seems ok as you have the binary.
Goplay connect to pulseaudio to play the music.
This error occurs when pulseaudio is not installed or if you have a specific setup.
You can also try to install it with apt.
Also, Raspian has introduced pulseaudio as default audio system in version 12.
Then, you could try to upgrade your distribution.
Some reference on pulseaudio on raspian:
https://www.raspberrypi.org/blog/new-raspberry-pi-os-release-december-2020/
from goplay2.
Hi, thanks for responding.
I do already have pulseaudio installed, sorry, should have included that info.
pi@raspBplus-api:~ $ sudo apt install pulseaudio
Reading package lists... Done
Building dependency tree
Reading state information... Done
pulseaudio is already the newest version (12.2-4+deb10u1+rpi3).
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
It's running
pi@raspBplus-api:~/Development/goplay2 $ pulseaudio --check
pi@raspBplus-api:~/Development/goplay2 $ echo $?
1
pi@raspBplus-api:~/Development/goplay2 $ pulseaudio -D
pi@raspBplus-api:~/Development/goplay2 $ pulseaudio --check
pi@raspBplus-api:~/Development/goplay2 $ echo $?
0
Here are the sinks:
2 sink(s) available.
index: 0
name: <alsa_output.platform-bcm2835_audio.digital-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME
state: SUSPENDED
suspend cause: IDLE
priority: 9000
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 0
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
fixed latency: 59.95 ms
card: 0 <alsa_card.platform-bcm2835_audio>
module: 6
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "bcm2835 HDMI 1"
alsa.id = "bcm2835 HDMI 1"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "bcm2835 HDMI 1"
alsa.long_card_name = "bcm2835 HDMI 1"
alsa.driver_name = "snd_bcm2835"
device.bus_path = "platform-bcm2835_audio"
sysfs.path = "/devices/platform/soc/3f00b840.mailbox/bcm2835_audio/sound/card0"
device.form_factor = "internal"
device.string = "hw:0"
device.buffering.buffer_size = "10576"
device.buffering.fragment_size = "2640"
device.access_mode = "mmap"
device.profile.name = "digital-stereo"
device.profile.description = "Digital Stereo"
device.description = "Built-in Audio Digital Stereo"
alsa.mixer_name = "Broadcom Mixer"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card"
ports:
hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: unknown)
properties:
device.icon_name = "video-display"
active port: <hdmi-output-0>
* index: 1
name: <alsa_output.platform-bcm2835_audio.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME
state: SUSPENDED
suspend cause: IDLE
priority: 9009
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 1
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 0
linked by: 0
fixed latency: 59.95 ms
card: 1 <alsa_card.platform-bcm2835_audio.2>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "bcm2835 Headphones"
alsa.id = "bcm2835 Headphones"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "bcm2835 Headphones"
alsa.long_card_name = "bcm2835 Headphones"
alsa.driver_name = "snd_bcm2835"
device.bus_path = "platform-bcm2835_audio"
sysfs.path = "/devices/platform/soc/3f00b840.mailbox/bcm2835_audio/sound/card1"
device.form_factor = "internal"
device.string = "hw:1"
device.buffering.buffer_size = "10576"
device.buffering.fragment_size = "2640"
device.access_mode = "mmap"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Built-in Audio Analog Stereo"
alsa.mixer_name = "Broadcom Mixer"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card"
ports:
analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
properties:
active port: <analog-output>
from goplay2.
Usually the other raison why this happens is because pulseaudio isn’t started for your user (or when running goplay2 as root or with sudo ) but in your report you seems to be running goplay with pi user and pulseaudio seems started.
Are you connected thru ssh or are you trying to run it from a terminal desktop ?
If you can try to run Gooplay2 from a desktop terminal, you should have pulseaudio started.
The error in any case means pulseaudio socket is not found. If you find where he is located on your OS, it might help resolve the issue ( and I can add a parameter to the program).
you can start looking at systemd unit file for pulseaudio (service and/or socket)
from goplay2.
Related Issues (19)
- Thanks for making this a reality! Requests: Multiple instances, Audio output routing, Volume Control HOT 13
- After some seconds or song change, sound is gone HOT 12
- Audio delay with HomePod Mini HOT 1
- Dockerfile broken HOT 16
- Failed building docker image on Raspi 4 HOT 2
- Feature request: ability to have configuration in a user specified directory
- Issues with CFLAGS and LDFLAGS HOT 4
- Best way to run GoPlay on RPi at boot up? HOT 2
- "Error parsing RSTP request close tcp4" when playing to two GoPlay2 devices at once HOT 3
- Don't run. HOT 3
- Error after several minutes HOT 1
- Unable to Pair on iOS 15 beta 6 HOT 16
- ALSA output HOT 17
- SIGSEGV when switching songs fast HOT 4
- Can't control goplay2 accessory on iOS/iPadOS 15 with HomeKit HOT 3
- Build fails on Mac OS HOT 5
- Stopped working with iOS version 15.1 HOT 3
- AirPlay 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goplay2.