You are not logged in.

#1 2021-06-01 04:19:48

multiphrenic
Member
From: Toronto, Canada
Registered: 2011-04-26
Posts: 73
Website

Pipewire / mopidy doesn't work with SomaFM but works with Spotify

This is a weird one.

I'm using Pipewire and Mopidy. When playing from Spotify everything just works out of the box great. I added the SomaFM source, and picked any channel that showed up. When I go to play it, I hear nothing, but mopidy shows that it is playing something.

I was pretty stumped until...I insttalled pulseffects and ran it. As soon as I opened it, the audio started playing from SomaFM. I can even close it and it still plays, but if I close everything and try playing again, back where I started...until I reopen pulseeffects. Just opening it is all it takes. Not sure where to even start with this one.

Offline

#2 2021-06-01 07:00:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,723

Re: Pipewire / mopidy doesn't work with SomaFM but works with Spotify

pactl list sinks
#Twice without pulseeffects and once with it started
pactl list sink-inputs

Offline

#3 2021-06-05 03:40:57

multiphrenic
Member
From: Toronto, Canada
Registered: 2011-04-26
Posts: 73
Website

Re: Pipewire / mopidy doesn't work with SomaFM but works with Spotify

Here it is. I'm using the Focusrite external soundcard here, so ignore the other ones.

[I] ➜ pactl list sinks
Sink #41
	State: SUSPENDED
	Name: alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo
	Description: HyperX 7.1 Audio Analog Stereo
	Driver: PipeWire
	Sample Specification: s16le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 48287 /  74% / -7.96 dB,   front-right: 48287 /  74% / -7.96 dB
	        balance 0.00
	Base Volume: 54094 /  83% / -5.00 dB
	Monitor Source: alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
	Properties:
		object.path = "alsa:pcm:0:front:0:playback"
		api.alsa.path = "front:0"
		api.alsa.pcm.card = "0"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		device.routes = "1"
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "USB Audio"
		alsa.id = "USB Audio"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HyperX Virtual Surround Sound"
		alsa.long_card_name = "Kingston HyperX Virtual Surround Sound at usb-0000:00:14.0-14, full speed"
		alsa.driver_name = "snd_usb_audio"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		card.profile.device = "4"
		device.id = "38"
		factory.name = "api.alsa.pcm.sink"
		priority.driver = "1009"
		priority.session = "1009"
		media.class = "Audio/Sink"
		node.nick = "HyperX Virtual Surround Sound"
		node.name = "alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo"
		device.description = "HyperX 7.1 Audio Analog Stereo"
		device.icon_name = "audio-card-analog"
		node.pause-on-idle = "false"
		factory.id = "18"
		client.id = "31"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "41"
	Ports:
		analog-output: Analog Output (type: Analog, priority: 9900, availability unknown)
	Active Port: analog-output
	Formats:
		pcm

Sink #43
	State: RUNNING
	Name: alsa_output.usb-Focusrite_Scarlett_Solo_USB_Y73YTTF9980B79-00.analog-stereo
	Description: Scarlett Solo (3rd Gen.) Analog Stereo
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 27982 /  43% / -22.18 dB,   front-right: 27982 /  43% / -22.18 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.usb-Focusrite_Scarlett_Solo_USB_Y73YTTF9980B79-00.analog-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY
	Properties:
		object.path = "alsa:pcm:1:front:1:playback"
		api.alsa.path = "front:1"
		api.alsa.pcm.card = "1"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		device.routes = "1"
		alsa.resolution_bits = "32"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "USB Audio"
		alsa.id = "USB Audio"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "Scarlett Solo USB"
		alsa.long_card_name = "Focusrite Scarlett Solo USB at usb-0000:00:14.0-6.2, high speed"
		alsa.driver_name = "snd_usb_audio"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		card.profile.device = "4"
		device.id = "39"
		factory.name = "api.alsa.pcm.sink"
		priority.driver = "945"
		priority.session = "945"
		media.class = "Audio/Sink"
		node.nick = "Scarlett Solo USB"
		node.name = "alsa_output.usb-Focusrite_Scarlett_Solo_USB_Y73YTTF9980B79-00.analog-stereo"
		device.description = "Scarlett Solo (3rd Gen.) Analog Stereo"
		device.icon_name = "audio-card-analog"
		node.pause-on-idle = "false"
		factory.id = "18"
		client.id = "31"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "43"
		node.max-latency = "32768/48000"
	Ports:
		analog-output: Analog Output (type: Analog, priority: 9900, availability unknown)
	Active Port: analog-output
	Formats:
		pcm

Sink #45
	State: SUSPENDED
	Name: alsa_output.pci-0000_00_1f.3.iec958-stereo
	Description: Built-in Audio Digital Stereo (IEC958)
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 48287 /  74% / -7.96 dB,   front-right: 48287 /  74% / -7.96 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_00_1f.3.iec958-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL DECIBEL_VOLUME LATENCY
	Properties:
		object.path = "alsa:pcm:2:iec958:2:playback"
		api.alsa.path = "iec958:2"
		api.alsa.pcm.card = "2"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		device.routes = "1"
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC1220 Digital"
		alsa.id = "ALC1220 Digital"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "1"
		alsa.card = "2"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xdc240000 irq 140"
		alsa.driver_name = "snd_hda_intel"
		device.profile.name = "iec958-stereo"
		device.profile.description = "Digital Stereo (IEC958)"
		card.profile.device = "11"
		device.id = "40"
		factory.name = "api.alsa.pcm.sink"
		priority.driver = "608"
		priority.session = "608"
		media.class = "Audio/Sink"
		node.nick = "HDA Intel PCH"
		node.name = "alsa_output.pci-0000_00_1f.3.iec958-stereo"
		device.description = "Built-in Audio Digital Stereo (IEC958)"
		device.icon_name = "audio-card-iec958"
		node.pause-on-idle = "false"
		factory.id = "18"
		client.id = "31"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "45"
	Ports:
		iec958-stereo-output: Digital Output (S/PDIF) (type: SPDIF, priority: 0, availability unknown)
	Active Port: iec958-stereo-output
	Formats:
		pcm

Sink #62
	State: SUSPENDED
	Name: alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1
	Description: GP104 High Definition Audio Controller Digital Stereo (HDMI 2)
	Driver: PipeWire
	Sample Specification: s32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 48287 /  74% / -7.96 dB,   front-right: 48287 /  74% / -7.96 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY
	Properties:
		object.path = "alsa:pcm:3:hdmi:3,1:playback"
		api.alsa.path = "hdmi:3,1"
		api.alsa.pcm.card = "3"
		api.alsa.pcm.stream = "playback"
		audio.channels = "2"
		audio.position = "FL,FR"
		device.routes = "1"
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "HDMI 1"
		alsa.id = "HDMI 1"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "7"
		alsa.card = "3"
		alsa.card_name = "HDA NVidia"
		alsa.long_card_name = "HDA NVidia at 0xdc080000 irq 17"
		alsa.driver_name = "snd_hda_intel"
		device.profile.name = "hdmi-stereo-extra1"
		device.profile.description = "Digital Stereo (HDMI 2)"
		card.profile.device = "10"
		device.id = "37"
		factory.name = "api.alsa.pcm.sink"
		priority.driver = "440"
		priority.session = "440"
		media.class = "Audio/Sink"
		node.nick = "HDA NVidia"
		node.name = "alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1"
		device.description = "GP104 High Definition Audio Controller Digital Stereo (HDMI 2)"
		device.icon_name = "audio-card-hdmi"
		node.pause-on-idle = "false"
		factory.id = "18"
		client.id = "31"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "62"
	Ports:
		hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, availability group: Legacy 2, available)
	Active Port: hdmi-output-1
	Formats:
		pcm

~ ## SOUND NOT WORKING YET ##
[I] ➜ pactl list sink-inputs
Sink Input #68
	Driver: PipeWire
	Owner Module: n/a
	Client: 67
	Sink: 43
	Sample Specification: float32le 2ch 44100Hz
	Channel Map: front-left,front-right
	Format: pcm, format.sample_format = "\"float32le\""  format.rate = "44100"  format.channels = "2"  format.channel_map = "\"front-left,front-right\""
	Corked: no
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Buffer Latency: 0 usec
	Sink Latency: 0 usec
	Resample method: PipeWire
	Properties:
		client.api = "pipewire-pulse"
		pulse.server.type = "unix"
		application.name = "Mopidy"
		application.process.id = "535"
		application.process.user = "pedram"
		application.process.host = "thiccbox"
		application.process.binary = "python3.9"
		application.language = "C"
		application.process.machine_id = "9d4eb7c1c86d4f5fabb8a6164abd3986"
		media.name = "Kinnaris Quintet - Can You Repeat That Please? / The Fisherman In The Wardrobe"
		stream.is-live = "true"
		node.name = "Mopidy"
		node.autoconnect = "true"
		media.class = "Stream/Output/Audio"
		adapt.follower.node = ""
		factory.id = "6"
		audio.adapt.follower = ""
		factory.mode = "split"
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "68"
		client.id = "67"
		node.latency = "3969/44100"
		pulse.attr.maxlength = "4194304"
		pulse.attr.tlength = "70560"
		pulse.attr.prebuf = "0"
		pulse.attr.minreq = "3528"
		media.filename = "http://somafm.com"
		media.title = "Kinnaris Quintet - Can You Repeat That Please? / The Fisherman In The Wardrobe"
		module-stream-restore.id = "sink-input-by-application-name:Mopidy"

~ ## SOUND NOT WORKING YET ## 
[I] ➜ pactl list sink-inputs
Sink Input #68
	Driver: PipeWire
	Owner Module: n/a
	Client: 67
	Sink: 43
	Sample Specification: float32le 2ch 44100Hz
	Channel Map: front-left,front-right
	Format: pcm, format.sample_format = "\"float32le\""  format.rate = "44100"  format.channels = "2"  format.channel_map = "\"front-left,front-right\""
	Corked: no
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Buffer Latency: 0 usec
	Sink Latency: 0 usec
	Resample method: PipeWire
	Properties:
		client.api = "pipewire-pulse"
		pulse.server.type = "unix"
		application.name = "Mopidy"
		application.process.id = "535"
		application.process.user = "pedram"
		application.process.host = "thiccbox"
		application.process.binary = "python3.9"
		application.language = "C"
		application.process.machine_id = "9d4eb7c1c86d4f5fabb8a6164abd3986"
		media.name = "Kinnaris Quintet - Can You Repeat That Please? / The Fisherman In The Wardrobe"
		stream.is-live = "true"
		node.name = "Mopidy"
		node.autoconnect = "true"
		media.class = "Stream/Output/Audio"
		adapt.follower.node = ""
		factory.id = "6"
		audio.adapt.follower = ""
		factory.mode = "split"
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "68"
		client.id = "67"
		node.latency = "3969/44100"
		pulse.attr.maxlength = "4194304"
		pulse.attr.tlength = "70560"
		pulse.attr.prebuf = "0"
		pulse.attr.minreq = "3528"
		media.filename = "http://somafm.com"
		media.title = "Kinnaris Quintet - Can You Repeat That Please? / The Fisherman In The Wardrobe"
		module-stream-restore.id = "sink-input-by-application-name:Mopidy"

~ ## OPENED PULSE EFFECTS, SOUND NOW WORKING ##
[I] ➜ pactl list sink-inputs
Sink Input #92
	Driver: PipeWire
	Owner Module: n/a
	Client: 84
	Sink: 43
	Sample Specification: float32le 2ch 48000Hz
	Channel Map: aux0,aux1
	Format: pcm, format.sample_format = "\"float32le\""  format.rate = "48000"  format.channels = "2"  format.channel_map = "\"aux0,aux1\""
	Corked: no
	Mute: no
	Volume: aux0: 65536 / 100% / 0.00 dB,   aux1: 65536 / 100% / 0.00 dB
	        balance 0.00
	Buffer Latency: 0 usec
	Sink Latency: 0 usec
	Resample method: PipeWire
	Properties:
		node.name = "pulseeffects_soe"
		device.description = "pulseeffects"
		node.group = "1"
		application.id = "com.github.wwmm.pulseeffects.streamoutputs"
		node.latency = "1/20"
		media.name = "pulseeffects"
		stream.is-live = "true"
		node.target = "43"
		node.autoconnect = "true"
		media.class = "Stream/Output/Audio"
		adapt.follower.node = ""
		factory.id = "7"
		audio.adapt.follower = ""
		factory.mode = "split"
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "92"
		client.id = "84"
		module-stream-restore.id = "sink-input-by-application-id:com.github.wwmm.pulseeffects.streamoutputs"

Sink Input #68
	Driver: PipeWire
	Owner Module: n/a
	Client: 67
	Sink: 81
	Sample Specification: float32le 2ch 44100Hz
	Channel Map: front-left,front-right
	Format: pcm, format.sample_format = "\"float32le\""  format.rate = "44100"  format.channels = "2"  format.channel_map = "\"front-left,front-right\""
	Corked: yes
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Buffer Latency: 0 usec
	Sink Latency: 0 usec
	Resample method: PipeWire
	Properties:
		client.api = "pipewire-pulse"
		pulse.server.type = "unix"
		application.name = "Mopidy"
		application.process.id = "535"
		application.process.user = "pedram"
		application.process.host = "thiccbox"
		application.process.binary = "python3.9"
		application.language = "C"
		application.process.machine_id = "9d4eb7c1c86d4f5fabb8a6164abd3986"
		media.name = "http://SomaFM.com"
		stream.is-live = "true"
		node.name = "Mopidy"
		node.autoconnect = "true"
		media.class = "Stream/Output/Audio"
		adapt.follower.node = ""
		factory.id = "6"
		audio.adapt.follower = ""
		factory.mode = "split"
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "68"
		client.id = "67"
		node.latency = "3969/44100"
		pulse.attr.maxlength = "4194304"
		pulse.attr.tlength = "70560"
		pulse.attr.prebuf = "0"
		pulse.attr.minreq = "3528"
		media.filename = "http://SomaFM.com"
		module-stream-restore.id = "sink-input-by-application-name:Mopidy"

Last edited by multiphrenic (2021-06-05 03:41:39)

Offline

Board footer

Powered by FluxBB