Code Monkey home page Code Monkey logo

Comments (4)

ericpardee avatar ericpardee commented on June 21, 2024 1

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.

AlbanSeurat avatar AlbanSeurat commented on June 21, 2024

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.

ericpardee avatar ericpardee commented on June 21, 2024

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.

AlbanSeurat avatar AlbanSeurat commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.