pipewire issueshttps://gitlab.freedesktop.org/pipewire/pipewire/-/issues2023-07-31T12:21:11Zhttps://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3395USB audio device + JACK client (REAPER, Ardour) causes ERRs since pw 0.3.722023-07-31T12:21:11ZOchiUSB audio device + JACK client (REAPER, Ardour) causes ERRs since pw 0.3.72- PipeWire version (`pipewire --version`): since 0.3.72 (also happens with 0.3.76)
- Distribution and distribution version (`PRETTY_NAME` from `/etc/os-release`): Arch Linux
- Desktop Environment: KDE Plasma
- Kernel version (`uname -r`)...- PipeWire version (`pipewire --version`): since 0.3.72 (also happens with 0.3.76)
- Distribution and distribution version (`PRETTY_NAME` from `/etc/os-release`): Arch Linux
- Desktop Environment: KDE Plasma
- Kernel version (`uname -r`): 6.4.7 and 6.1.39 LTS
## Description of Problem:
After updating my system recently, I noticed crackling sound and ERRs in pw-top after connecting an USB audio device (tested with a RODE Wireless receiver, a Razer Headset receiver and a small, generic USB audio card) to JACK clients like REAPER or Ardour.
Trying different versions of pipewire shows that 0.3.71 worked fine, and versions 0.3.72 or newer (also tested with 0.3.76) cause these errors. It happened with a quantum of 256 as well as 1024.
## How Reproducible:
Pretty easily reproducible on different machines with different devices.
### Steps to Reproduce:
1. Start REAPER or Ardour in JACK mode
2. Plug in the USB audio device and connect its input to a channel of the DAW (I use qpwgraph + wireplumber for managing the connections).
3. Sometimes I needed to reconnect the USB device once for the errors to start happening.
4. Observe pw-top and check for an ever increasing ERR counter.
# Additional Info (as attachments):
- `pw-dump > pw-dump.log`: [pw-dump.log](/uploads/35b9650c1e010ff19225bc1e0e6b3a3c/pw-dump.log)https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3394stream.rules in client.conf is not applied to pipewire alsa clients.2023-07-30T13:39:35Zkenji amanostream.rules in client.conf is not applied to pipewire alsa clients.`~/.config/pipewire/client.conf.d/10-local.conf`
```
stream.rules = [
{
matches = [
{
media.class = Stream/Output/Audio
}
]
actions = {
update-props = {
target.object = default-sink
}...`~/.config/pipewire/client.conf.d/10-local.conf`
```
stream.rules = [
{
matches = [
{
media.class = Stream/Output/Audio
}
]
actions = {
update-props = {
target.object = default-sink
}
}
}
]
```
This is ignored by pipewire alsa clients.
I had to configure target.object with
```
pcm.!default {
type pipewire
playback_node "default-sink"
#capture_node "-1"
hint {
show on
description "Default ALSA Output (currently PipeWire Media Server)"
}
}
ctl.!default {
type pipewire
}
```
in `~/.asoundrc`.https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3393Pipewire V.0.3.76 Kills Surround Again Like The Previous 0.3.712023-11-02T08:36:04ZIvaylo DimovPipewire V.0.3.76 Kills Surround Again Like The Previous 0.3.71The title itself says it all. BE SURE to back up with Timeshift if you decide to install the update. I just rolled mine back to the latest working version - 0.3.63.
After installing said versions, if I do a speaker test, all work normal...The title itself says it all. BE SURE to back up with Timeshift if you decide to install the update. I just rolled mine back to the latest working version - 0.3.63.
After installing said versions, if I do a speaker test, all work normally.
But if I play some sound source, for example music, only the front speakers play and only a slight noise is heard in the rear speakers. This also happens when watching movies or any other sound source.
The return of version 0.3.63 also restores sound in the rear speakers.
It doesn't matter if I use the currently built-in SB Audigy or another sound card. I also tested with CM106 - USB 7.1 surround card - the effect is the same - only the front speakers play.
System:
Kernel: 5.15.0-78-generic x86_64 bits: 64 compiler: gcc v: 11.3.0 Desktop: MATE 1.26.0 wm: marco
dm: LightDM Distro: Linux Mint 21.2 Victoria base: Ubuntu 22.04 jammy
Machine:
Type: Desktop Mobo: Gigabyte model: B660M GAMING X AX DDR4 v: x.x serial: <superuser required>
BIOS: American Megatrends LLC. v: F2 date: 12/17/2021
CPU:
Info: quad core model: 12th Gen Intel Core i3-12100F bits: 64 type: MT MCP arch: Alder Lake
rev: 5 cache: L1: 320 KiB L2: 5 MiB L3: 12 MiB
Speed (MHz): avg: 4053 high: 4100 min/max: 800/5500 cores: 1: 4069 2: 4100 3: 3894 4: 4100
5: 4100 6: 3975 7: 4098 8: 4094 bogomips: 52838
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Audio:
Device-1: NVIDIA GP107GL High Definition Audio vendor: Gigabyte driver: snd_hda_intel v: kernel
pcie: speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0fb9
Device-2: Creative Labs Sound Core3D [Sound Blaster Recon3D / Z-Series] driver: snd_hda_intel
v: kernel pcie: speed: 2.5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 1102:0012
Sound Server-1: ALSA v: k5.15.0-78-generic running: yes
Sound Server-2: PulseAudio v: 15.99.1 running: no
Sound Server-3: PipeWire v: 0.3.63 running: yeshttps://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3392module-loopback improvements2023-10-23T16:08:30Zstefanu21module-loopback improvementsAt the moment the loopback module handles mono capture streams not as expected.
What I want to have is a flexible input to my audio system.
On my system I'm using a loopback module to map a mono or stereo capture input to a stereo playba...At the moment the loopback module handles mono capture streams not as expected.
What I want to have is a flexible input to my audio system.
On my system I'm using a loopback module to map a mono or stereo capture input to a stereo playback output.
But when I set audio.position = [ FL FR ] at the playback section and no audio.position property at the capture section a mono source is only pushed to the FL channel.
I could also set [MONO MONO] on the capture session but then I cannot use this loopback for stereo inputs.
I would expect that a MONO input will be played on all output channels when there is no channel mapping set.
What do you think about this?
I have also tried the combine-stream module because there I could set a match pattern and a stream create action with a channel map for the mono and stereo case but with this module I had a lot of troubles from robot voice to no voice when I do relinking the inputs and outputs.
What I have seen is that the combine-stream is very fragile when linkes are removed or changed by a session manager like wireplumber.https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3391AirPod Pro on Debian Pipewire 0.3.74-1+b1 no mSBC profile available2023-07-29T09:31:31ZAndreas HarthAirPod Pro on Debian Pipewire 0.3.74-1+b1 no mSBC profile available<!-- If you are filing this issue with a regular release please try master as it might already be fixed. -->
<!-- If you can, test also with Pulseaudio and list `pulseaudio --version`. -->
- PipeWire version (`pipewire --version`):100:...<!-- If you are filing this issue with a regular release please try master as it might already be fixed. -->
<!-- If you can, test also with Pulseaudio and list `pulseaudio --version`. -->
- PipeWire version (`pipewire --version`):100:
pipewire
Compiled with libpipewire 0.3.74
Linked with libpipewire 0.3.74
- Distribution and distribution version (`PRETTY_NAME` from `/etc/os-release`): Debian GNU/Linux 12 (bookworm)
- Desktop Environment: Gnome
- Kernel version (`uname -r`): 6.1.0-10-amd64
- BlueZ version (`bluetoothctl --version`): bluetoothctl: 5.66
- `lsusb`:
```
Bus 004 Device 003: ID 17ef:3070 Lenovo USB3.1 Hub
Bus 004 Device 002: ID 17ef:3070 Lenovo USB3.1 Hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 007: ID 17ef:3075 Lenovo USB Billboard Device
Bus 003 Device 006: ID 17ef:6047 Lenovo ThinkPad Compact Keyboard with TrackPoint
Bus 003 Device 008: ID 17ef:306f Lenovo ThinkPad Dock USB Audio
Bus 003 Device 009: ID 0b0e:0422 GN Netcom Jabra SPEAK 510 USB
Bus 003 Device 004: ID 17ef:3071 Lenovo USB2.0 Hub
Bus 003 Device 005: ID 056d:4037 EIZO Corp. FlexScan EV3285
Bus 003 Device 003: ID 045b:0209 Hitachi, Ltd
Bus 003 Device 002: ID 17ef:3071 Lenovo USB2.0 Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0bda:0316 Realtek Semiconductor Corp. Card Reader
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 06cb:009a Synaptics, Inc. Metallica MIS Touch Fingerprint Reader
Bus 001 Device 006: ID 04f2:b604 Chicony Electronics Co., Ltd Integrated Camera (1280x720@30)
Bus 001 Device 008: ID 8087:0a2b Intel Corp. Bluetooth wireless interface
Bus 001 Device 004: ID 2cb7:0210 Fibocom L830-EB-00 LTE WWAN Modem
Bus 001 Device 003: ID 17ef:3074 Lenovo USB Billboard
Bus 001 Device 002: ID 058f:9540 Alcor Micro Corp. AU9540 Smartcard Reader
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
```
- Bluetooth devices:
```
# paste the output of "bluetoothctl devices" here
Device 50:1A:A5:25:E2:xx Jabra SPEAK 510 USB
Device 38:EC:0D:AD:A0:xx AirPods Pro
```
## Description of Problem:
I can choose both the CVSD and mSBC codecs on Jabra SPEAK 510 USB, but only the CVSD codec on the AirPods Pro.
## How Reproducible:
Always.
### Steps to Reproduce:
1. Connect device via bluetooth
2. Select Handsfree {device}
3. Select CSVD or mSBC code on Jabra SPEAK 510 USB, select only CVSD on AirPods Pro.
### Actual Results:
3. Select only CVSD on AirPods Pro.
### Expected Results:
3. Select CVSD or mSBC on AirPods Pro.
# Additional Info (as attachments):
- `pw-dump > pw-dump.log`: ````# pw-dump can't connect: Host is down````
- Bluetooth debug log, see [here](https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Troubleshooting#bluetooth): currently cannot connecthttps://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3389Headers missing in wav file: pw-record - | tee rec.wav | pw-play -2023-07-27T20:50:07ZMatthias BraunHeaders missing in wav file: pw-record - | tee rec.wav | pw-play -Hi and thanks a lot for PipeWire!
When recording and listening to audio from the default source with
pw-record - | tee rec.wav | pw-play -
I can hear the audio fine but the resulting `rec.wav` is unplayable. VLC says that the head...Hi and thanks a lot for PipeWire!
When recording and listening to audio from the default source with
pw-record - | tee rec.wav | pw-play -
I can hear the audio fine but the resulting `rec.wav` is unplayable. VLC says that the header is missing.
For the same source device, this works:
arecord - | tee rec.wav | aplay -
I'm running Arch Linux with pipewire-audio 1:0.3.75-2.https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3388[pipewire-pulse] Pipewire sends a microphone volume change event when the vol...2023-10-23T16:03:26ZNikolay Borodin[pipewire-pulse] Pipewire sends a microphone volume change event when the volume of the audio output changesIs this normal behavior for PulseAudio?
See discussion here: https://gitlab.xfce.org/panel-plugins/xfce4-pulseaudio-plugin/-/issues/94Is this normal behavior for PulseAudio?
See discussion here: https://gitlab.xfce.org/panel-plugins/xfce4-pulseaudio-plugin/-/issues/94https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3387Muting virtual source or changing volume doesn't affect virtual source2023-07-26T19:04:19ZCarlos AugustoMuting virtual source or changing volume doesn't affect virtual source- PipeWire version (`pipewire --version`):
0.3.75
- Distribution and distribution version (`PRETTY_NAME` from `/etc/os-release`):
Gentoo Linux
- Desktop Environment:
sway, bspwm
- Kernel version (`uname -r`):
6.4.5
## Description of Pro...- PipeWire version (`pipewire --version`):
0.3.75
- Distribution and distribution version (`PRETTY_NAME` from `/etc/os-release`):
Gentoo Linux
- Desktop Environment:
sway, bspwm
- Kernel version (`uname -r`):
6.4.5
## Description of Problem:
Current setup has a Virtual microphone (pulse_mic) being fed by 2 real microphones (using qpwgraph to link the nodes).
When muting the virtual microphone `pulse_mic` (either through pavucontrol or pactl set-source-mute) or changing the volume, the virtual microphone still produces sound from the original source.
## How Reproducible:
Happens everytime (in my environment? Seems like a trend...)
### Steps to Reproduce:
1. Have a virtual source in pipewire.conf (unsure if it happens when source is created through cli)
```
{ factory = adapter
args = {
factory.name = support.null-audio-sink
node.name = pulse_mic
node.description = pulse_mic
media.class = Audio/Source/Virtual
audio.position = [ FL FR ]
object.linger = true
}
}
```
2. Connect a hardware microphone to the virtual microphone
3. Mute virtual microphone
4. Observe audio levels are still going through the microphone through something like pavucontrolhttps://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3382node.autoconnect of filter chain ignored since pipewire-0.3.752023-07-26T08:45:44Zaqxa1node.autoconnect of filter chain ignored since pipewire-0.3.75<!-- If you are filing this issue with a regular release please try master as it might already be fixed. -->
- PipeWire version (`pipewire --version`): 0.3.75
- Distribution and distribution version (`PRETTY_NAME` from `/etc/os-release`...<!-- If you are filing this issue with a regular release please try master as it might already be fixed. -->
- PipeWire version (`pipewire --version`): 0.3.75
- Distribution and distribution version (`PRETTY_NAME` from `/etc/os-release`): Gentoo Linux
- Desktop Environment: sway
- Kernel version (`uname -r`): 6.2.16
## Description of Problem:
I have set `node.autoconnect` to `false` in my filter chain because I want to handle the connections myself, and this works correctly with 0.3.74 and earlier but not with any later version.
## How Reproducible:
Every time filter chain is loaded.
### Steps to Reproduce:
1. Launch pipewire
2. `pipewire -c filter-chain/<filter-chain>.conf` (with `node.autoconnect = false` set in config)
3.
### Actual Results:
Filter chain automatically connects to inputs and outputs
### Expected Results:
Filter chain doesn't automatically connect
# Additional Info (as attachments):
- `pw-dump > pw-dump.log`:
[pw_dump.log](/uploads/98026ac3a237f4f15c00c0e91eb634d8/pw_dump.log)
- filter-chain
[sink-ambio-ir.conf](/uploads/7dff881041c80052f0449b2ec80768fe/sink-ambio-ir.conf)https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3381Pipewire randomly crashing when pausing/seeking/playing video in Firefox.2023-10-23T14:51:45Zniobium93Pipewire randomly crashing when pausing/seeking/playing video in Firefox.- PipeWire version (`pipewire --version`): 0.3.75
- Distribution and distribution version (`PRETTY_NAME` from `/etc/os-release`): Arch Linux
- Desktop Environment: KDE Plasma Wayland
- Kernel version (`uname -r`): 6.4.5-zen1-1.1-zen
## ...- PipeWire version (`pipewire --version`): 0.3.75
- Distribution and distribution version (`PRETTY_NAME` from `/etc/os-release`): Arch Linux
- Desktop Environment: KDE Plasma Wayland
- Kernel version (`uname -r`): 6.4.5-zen1-1.1-zen
## Description of Problem:
It just crashes when pausing then seeking back 5 seconds then playing YouTube videos in Firefox.
## How Reproducible:
I watch loads of videos everyday, but it only happens about twice a week or so. So probably hard to reproduce.
### Steps to Reproduce:
1. Play YouTube video in Firefox.
2. Pause video.
3. Seek back 5 seconds using the left arrow button.
4. Play video.
### Actual Results:
Pipewire crashes, video plays without sound until Pipewire gets restarted by SystemD. Sometimes Firefox seems to freeze until Pipewire comes back.
### Expected Results:
Video plays, sound is heard.
# Additional Info (as attachments):
- `pw-dump > pw-dump.log`: [pw-dump.log](/uploads/6ddfd4fb0b97717adb65364656bcd377/pw-dump.log)
- `sudo journalctl -b | grep 'pipewire'`: [pipewire-crash2.txt](/uploads/44e7a755f0d049a4e676b98e7ba0b2c9/pipewire-crash2.txt)
- `coredumpctl gdb` + `bt full` with symbols from debuginfod: [pipewire_backtrace.txt](/uploads/8535da82ceb346883b4b97e2f97a6afe/pipewire_backtrace.txt)https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3380Native VBAN Support2023-11-18T22:59:06ZhrdwrbobNative VBAN SupportYou can currently use VBAN (Voicemeeter Audio Network) as an application, but it doesn't provide the sort of experience you'd want. Moving this to a native source/sink would improve this a lot. It's a relatively simple published protocol...You can currently use VBAN (Voicemeeter Audio Network) as an application, but it doesn't provide the sort of experience you'd want. Moving this to a native source/sink would improve this a lot. It's a relatively simple published protocol - and has support for midi as well.
This would mean easier and better integration with Windows as well (as this is a common way to use pipewire as a desk area audio router)https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3379JVC HA-S31BT - occasionally microphone works, mostly not2024-01-13T11:49:19ZReuben FirminJVC HA-S31BT - occasionally microphone works, mostly not<!-- If you are filing this issue with a regular release please try master as it might already be fixed. -->
<!-- If you can, test also with Pulseaudio and list `pulseaudio --version`. -->
- PipeWire version (`pipewire --version`): 0.3...<!-- If you are filing this issue with a regular release please try master as it might already be fixed. -->
<!-- If you can, test also with Pulseaudio and list `pulseaudio --version`. -->
- PipeWire version (`pipewire --version`): 0.3.74
- Distribution and distribution version (`PRETTY_NAME` from `/etc/os-release`): Pop!_OS 22.04 LTS
- Desktop Environment: KDE
- Kernel version (`uname -r`): 6.2.6-76060206-generic
- BlueZ version (`bluetoothctl --version`): 5.64
- `lsusb`:
```
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 27c6:63bc Shenzhen Goodix Technology Co.,Ltd. Goodix USB2.0 MISC
Bus 002 Device 002: ID 8086:0b63 Intel Corp. USB Bridge
Bus 002 Device 004: ID 8087:0033 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
```
- Bluetooth devices:
```
Device 28:FE:65:D3:89:2C JVC HA-S31BT
```
## Description of Problem:
This cheap bluetooth headset has a microphone. I've seen it occasionally be detected, but 90%+ of the time it is not. Audio playback always works.
### Expected Results:
# Additional Info (as attachments):
- `[pw-dump.log](/uploads/089e69c3ab926557fb90a0b4a3e0161e/pw-dump.log)`:
- Bluetooth debug log, see [here](https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Troubleshooting#bluetooth):https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3378Pipewire 0.3.75. Intermittent loss of sound on bluetooth device2023-09-06T13:42:13ZArtemPipewire 0.3.75. Intermittent loss of sound on bluetooth device
- PipeWire version: 0.3.75
- Distribution and distribution version: Fedora Linux 38
- Desktop Environment: KDE Plasma
- Kernel version: 6.3.12-200.fc38.x86_64
- BlueZ version: 5.68
- Bluetooth device: Apple AirPods Pro
- lsusb:
```bash...
- PipeWire version: 0.3.75
- Distribution and distribution version: Fedora Linux 38
- Desktop Environment: KDE Plasma
- Kernel version: 6.3.12-200.fc38.x86_64
- BlueZ version: 5.68
- Bluetooth device: Apple AirPods Pro
- lsusb:
```bash
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 0b05:17cb ASUSTek Computer, Inc. Broadcom BCM20702A0 Bluetooth
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 006: ID 8087:0026 Intel Corp. AX201 Bluetooth
Bus 001 Device 005: ID 1462:7d18 Micro Star International MYSTIC LIGHT
Bus 001 Device 002: ID 046d:c53f Logitech, Inc. USB Receiver
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
```
## Description of Problem:
The sound on my bluetooth headphones disappears, but reappears after restarting the app or after some time.
Example 1: I was only playing sound in Firefox, with Spotify also running in the background. I paused audio playback in Firefox and tried to play music in Spotify. The sound was gone. It was no longer working in either Firefox or Spotify. I restarted Spotify and now the sound works everywhere.
Example 2: Was watching a video in Firefox, paused the video and after a couple minutes tried to play the video, the sound was gone. Started Google Chrome and the sound came back.
## How Reproducible:
Can't replicate the problem, it happens about a couple times a dayhttps://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3376`bool` definition missing in `version.h.in`2023-07-25T07:28:16ZAndrej Gardijan`bool` definition missing in `version.h.in`I'll be linking to the GitHub mirror pull request fix:
https://github.com/PipeWire/pipewire/pull/217
I can't currently create a fork and merge request since I'm getting a GitLab error when trying to fork the project: "You have reached ...I'll be linking to the GitHub mirror pull request fix:
https://github.com/PipeWire/pipewire/pull/217
I can't currently create a fork and merge request since I'm getting a GitLab error when trying to fork the project: "You have reached your project limit".https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3375Compilation fail on ubuntu 20.04.62023-07-30T08:43:42ZSourav Dassouravdas142@gmail.comCompilation fail on ubuntu 20.04.6<!-- If you are filing this issue with a regular release please try master as it might already be fixed. -->
- PipeWire version (`pipewire --version`): 0.3.75
- Distribution and distribution version (`PRETTY_NAME` from `/etc/os-release...<!-- If you are filing this issue with a regular release please try master as it might already be fixed. -->
- PipeWire version (`pipewire --version`): 0.3.75
- Distribution and distribution version (`PRETTY_NAME` from `/etc/os-release`): ubuntu 20.04.6
- Desktop Environment: Gnome
- Kernel version (`uname -r`): 5.18.15-051815-generic
- gcc version : gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
## Description of Problem:
Compilation error on
```bash
[1/936] cc -Ispa/plugins/alsa/libspa-alsa.so.p -Ispa/plugins/alsa -I../spa/plugins/alsa -I. -I.. -Ispa/include -I../spa/include -flto=1 -fdiagnostics-color=always -D_FI
LE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 -fvisibility=hidden -fno-strict-aliasing -Werror=suggest-attribute=format -Wsign-compare -Wpointer-a
rith -Wpointer-sign -Wformat -Wformat-security -Wimplicit-fallthrough -Wmissing-braces -Wtype-limits -Wvariadic-macros -Wmaybe-uninitialized -Wno-missing-field-initiali
zers -Wno-unused-parameter -Wno-pedantic -Wdeprecated-declarations -Wunused-result -Werror=return-type -D_GNU_SOURCE -DFASTPATH -Werror=implicit-function-declaration -W
error=int-conversion -Werror=old-style-declaration -Werror=old-style-definition -Werror=missing-parameter-type -Werror=strict-prototypes -g -O2 -fdebug-prefix-map=/home
/sdas/pw/test/pipewire-0.3.75=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_ALSA_UCM -DHAVE_READLINK -MD -MQ
spa/plugins/alsa/libspa-alsa.so.p/alsa-udev.c.o -MF spa/plugins/alsa/libspa-alsa.so.p/alsa-udev.c.o.d -o spa/plugins/alsa/libspa-alsa.so.p/alsa-udev.c.o -c ../spa/plugi
ns/alsa/alsa-udev.c
FAILED: spa/plugins/alsa/libspa-alsa.so.p/alsa-udev.c.o
cc -Ispa/plugins/alsa/libspa-alsa.so.p -Ispa/plugins/alsa -I../spa/plugins/alsa -I. -I.. -Ispa/include -I../spa/include -flto=1 -fdiagnostics-color=always -D_FILE_OFFSE
T_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=gnu11 -fvisibility=hidden -fno-strict-aliasing -Werror=suggest-attribute=format -Wsign-compare -Wpointer-arith -Wp
ointer-sign -Wformat -Wformat-security -Wimplicit-fallthrough -Wmissing-braces -Wtype-limits -Wvariadic-macros -Wmaybe-uninitialized -Wno-missing-field-initializers -Wn
o-unused-parameter -Wno-pedantic -Wdeprecated-declarations -Wunused-result -Werror=return-type -D_GNU_SOURCE -DFASTPATH -Werror=implicit-function-declaration -Werror=in
t-conversion -Werror=old-style-declaration -Werror=old-style-definition -Werror=missing-parameter-type -Werror=strict-prototypes -g -O2 -fdebug-prefix-map=/home/sdas/pw
/test/pipewire-0.3.75=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_ALSA_UCM -DHAVE_READLINK -MD -MQ spa/plug
ins/alsa/libspa-alsa.so.p/alsa-udev.c.o -MF spa/plugins/alsa/libspa-alsa.so.p/alsa-udev.c.o.d -o spa/plugins/alsa/libspa-alsa.so.p/alsa-udev.c.o -c ../spa/plugins/alsa/
alsa-udev.c
In file included from ../spa/plugins/alsa/alsa-udev.c:17:
../spa/include/spa/utils/cleanup.h: In function ‘_spa_autoptr_cleanup_func_DIR’:
../spa/include/spa/utils/cleanup.h:52:13: error: dereferencing pointer to incomplete type ‘DIR’ {aka ‘struct __dirstream’}
52 | __typeof__(*(ptr)) *_old_value = spa_steal_ptr(ptr); \
| ^~~~~~
../spa/include/spa/utils/cleanup.h:29:2: note: in definition of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
29 | __VA_ARGS__ \
| ^~~~~~~~~~~
../spa/include/spa/utils/cleanup.h:95:2: note: in expansion of macro ‘spa_clear_ptr’
95 | spa_clear_ptr(*thing, closedir);
| ^~~~~~~~~~~~~
../spa/include/spa/utils/cleanup.h:54:14: warning: passing argument 1 of ‘closedir’ from incompatible pointer type [-Wincompatible-pointer-types]
54 | destructor(_old_value); \
| ^~~~~~~~~~
| |
| int *
../spa/include/spa/utils/cleanup.h:29:2: note: in definition of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
29 | __VA_ARGS__ \
| ^~~~~~~~~~~
../spa/include/spa/utils/cleanup.h:95:2: note: in expansion of macro ‘spa_clear_ptr’
| ^~~~~~~~~~~~~
../spa/include/spa/utils/cleanup.h:54:14: warning: passing argument 1 of ‘closedir’ from incompatible pointer type [-Wincompatible-pointer-types]
54 | destructor(_old_value); \
| ^~~~~~~~~~
| |
| int *
../spa/include/spa/utils/cleanup.h:29:2: note: in definition of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
29 | __VA_ARGS__ \
| ^~~~~~~~~~~
../spa/include/spa/utils/cleanup.h:95:2: note: in expansion of macro ‘spa_clear_ptr’
95 | spa_clear_ptr(*thing, closedir);
| ^~~~~~~~~~~~~
In file included from ../spa/plugins/alsa/alsa-udev.c:12:
/usr/include/dirent.h:149:27: note: expected ‘DIR *’ {aka ‘struct __dirstream *’} but argument is of type ‘int *’
149 | extern int closedir (DIR *__dirp) __nonnull ((1));
| ~~~~~^~~~~~
ninja: build stopped: subcommand failed.
```
## How Reproducible:
try to Compile on Ubuntu 20.04.6
### Steps to Reproduce:
1. Clone the repo
2. try to compile with options enabled
```bash
dh_auto_configure -- --buildtype=plain \
-Daudiotestsrc=enabled \
-Dauto_features=enabled \
-Db_lto=true \
-Db_pie=true \
-Dbluez5-codec-lc3plus=disabled \
-Dbluez5-codec-lc3=enabled \
-Dbluez5-codec-ldac=enabled \
-Dbluez5-codec-aptx=enabled \
-Dbluez5-codec-aac=enabled \
-Dcompress-offload=disabled \
-Dlibcamera=enabled \
-Ddocs=enabled \
-Dbluez5-backend-native-mm=enabled \
-Dexamples=enabled \
-Dinstalled_tests=enabled \
-Dman=enabled \
-Dtest=enabled \
-Dvideotestsrc=enabled \
-Dvolume=enabled \
-Dvulkan=enabled \
-Droc=enabled \
-Dsession-managers= \
```
3. you can always reproduce
### Actual Results:
Compilation error
### Expected Results:
Should compile successfully
# Additional Info (as attachments):
Problem came up with 65d949558b552ae51a2c918a417cb95c7eb6f959https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3374After update to pipewire-0.3.75 mpv failed to initialize audio driver 'pipewire'2023-07-23T13:12:48Zjosef fiftynineAfter update to pipewire-0.3.75 mpv failed to initialize audio driver 'pipewire'Hello,
I'm not sure this is a pipewire-0.3.75 or a mpv issue,
but after updating from pipewire-0.3.74 to pipewire-0.3.75 i noticed mpv don't plays sound anymore with -ao=pipewire
Example mpv output with working pipewire-0.3.74
```
$ mpv...Hello,
I'm not sure this is a pipewire-0.3.75 or a mpv issue,
but after updating from pipewire-0.3.74 to pipewire-0.3.75 i noticed mpv don't plays sound anymore with -ao=pipewire
Example mpv output with working pipewire-0.3.74
```
$ mpv -ao=pipewire Music/Fat\ City\ \(Remastered\)-Te3aBiRTdqU.mp4
(+) Video --vid=1 (*) (h264 1920x1080 6.000fps)
(+) Audio --aid=1 (*) (aac 2ch 44100Hz)
Using hardware decoding (vaapi).
AO: [pipewire] 44100Hz stereo 2ch floatp
VO: [gpu-next] 1920x1080 vaapi[nv12]
AV: 00:00:09 / 00:05:26 (3%) A-V: 0.000
Exiting... (Quit)
```
Example output after updating to pipewire-0.3.75
```
$ mpv -ao=pipewire Music/Fat\ City\ \(Remastered\)-Te3aBiRTdqU.mp4
(+) Video --vid=1 (*) (h264 1920x1080 6.000fps)
(+) Audio --aid=1 (*) (aac 2ch 44100Hz)
Using hardware decoding (vaapi).
[ao] Failed to initialize audio driver 'pipewire'
Could not open/initialize audio device -> no sound.
Audio: no audio
VO: [gpu-next] 1920x1080 vaapi[nv12]
V: 00:00:05 / 00:05:26 (2%)
Exiting... (Quit)
```
Then we started a git bisect (a dev helped me with this) to this commit https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/33be898130f075bcd2e4a1cdb61ea54a8540932a
After revert this commit mpv -ao=pipewire works again.
Operating system is Gentoo Linux with kernel 6.1.39,
and tested with mpv-0.35.1 and latest git master.
Thankshttps://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3372Sound doesn't work after waking from suspend2023-11-30T14:51:19ZMatthew AndersonSound doesn't work after waking from suspendI've been working on the Rog Ally getting the sleep feature to work and I'm down to the audio not working unless all audio sources are stopped for roughly 10 seconds and then if you trigger an audio event it will work. I figured this mig...I've been working on the Rog Ally getting the sleep feature to work and I'm down to the audio not working unless all audio sources are stopped for roughly 10 seconds and then if you trigger an audio event it will work. I figured this might be a pipewire bug because I don't see anything in my logs suggesting otherwise.
![Screenshot_from_2023-07-21_22-06-46](/uploads/e34c60f06a98c335075fd829b4b684d1/Screenshot_from_2023-07-21_22-06-46.png)
![Screenshot_from_2023-07-21_22-06-51](/uploads/c87af1b221e55339bac0d4157cdaef7f/Screenshot_from_2023-07-21_22-06-51.png)
I need to wait for the current sources to disappear in the pw-top and when I move the joystick in the Steam UI the sources come back with working audio again.
[pw-dump-rog-ally.txt](/uploads/28ef4a2937313c7445d1d37980d0b3f8/pw-dump-rog-ally.txt)
System:
OS: ChimeraOS V43
Kernel: 6.3.9-linux-chimeraos
Audio: CSC3551 Cirrus Amp/ALS294
Hardware: Asus Rog Ally Handheld.https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3366URLOPEN Error While Wireplumber Trying To Download Lua5.4.42023-07-20T00:55:01Zfrkli1965URLOPEN Error While Wireplumber Trying To Download Lua5.4.4Hi,
Not entirely sure if it's my PC or something more nefarious but I am having trouble this evening with the PW build as the Wireplumber subproject can not download the required Lua compiler.
The message is as follows:-
wireplumber| ...Hi,
Not entirely sure if it's my PC or something more nefarious but I am having trouble this evening with the PW build as the Wireplumber subproject can not download the required Lua compiler.
The message is as follows:-
wireplumber| <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
Also, I am having no problems downloading the file directly with either curl or wget i.e.
curl -R -O https://www.lua.org/ftp/lua-5.4.4.tar.gz
wget https://www.lua.org/ftp/lua-5.4.4.tar.gz
The SSL certificate for my Python installation also appears to be fine btw.
Furthermore, I am having no other issues downloading subprojects with Meson on other GIT repositories so am at a bit of a loss as to what may be causing the problem.
Surely lua.org hasn't decided to ban Python scripts from accessing their website. Suppose I could try tinkering with the Meson core and see if it's an user-agent problem...
Finally, I feel it worth mentioning that I successfully built PW this morning via the exact same means with no issues whatsoever.
Any assistance would be very much appreciated...
Rgds,
P.S. I am using Linux btw... :-)https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3365pipewire / pw-play (pw-cat) cuts off end of audio output when it is the only/...2023-07-21T10:20:34ZAlain Dpipewire / pw-play (pw-cat) cuts off end of audio output when it is the only/last audio playedHello,
issue: pipewire / pw-play (pw-cat) cuts off end of audio output when it is the only/last audio played.
Versions tested:
`pipewire` / `pw-cat` / `libpipewire` `0.3.65` and `0.3.74` (`wireplumber` `0.4.13` and `0.4.14`)
Examples ...Hello,
issue: pipewire / pw-play (pw-cat) cuts off end of audio output when it is the only/last audio played.
Versions tested:
`pipewire` / `pw-cat` / `libpipewire` `0.3.65` and `0.3.74` (`wireplumber` `0.4.13` and `0.4.14`)
Examples using [speech-dispatcher sound icons](https://devel.freebsoft.org/pub/projects/sound-icons):
- `percussion-10.wav` ("tok") is a very short sound, only ~ 30ms
- `percussion-12.wav` ("tok"-"tik") is a little longer ~ 130ms
This does not play any sound on my systems (older Intel/AMD laptops and desktops):
```
pw-play /usr/share/sounds/*/percussion-10.wav
```
…unless another process is also outputting audio at the same time, then it works.
This only plays the first part of the sound ("tok" without "tik") on my systems:
```
pw-play /usr/share/sounds/*/percussion-12.wav
```
**Note**: if another process is also outputing audio at the same time, even if paused, then it works ok.
It appears it might be dropping the very last buffer? and if last buffer is larger than last sound…
```
pw-top # outputs for each command on i7 laptop Intel Series 8 chipset (snd_hda_intel):
S ID QUANT RATE WAIT BUSY W/Q B/Q ERR FORMAT NAME
pw-play /usr/share/sounds/sound-icons/percussion-10.wav # NO sound (def. latency=100ms)
R 50 2048 48000 61.1us 89.3us 0.00 0.00 8 S32LE 2 48000 alsa_output.pci-0000_00_1b.0.analog-stereo
R 80 1600 16000 27.8us 19.9us 0.00 0.00 8 S16LE 1 16000 + pw-play
pw-play --latency=20ms /usr/share/sounds/sound-icons/percussion-10.wav # OK sound
R 50 512 48000 83.6us 44.1us 0.01 0.00 8 S32LE 2 48000 alsa_output.pci-0000_00_1b.0.analog-stereo
R 77 320 16000 25.8us 25.4us 0.00 0.00 8 S16LE 1 16000 + pw-play
paplay /usr/share/sounds/sound-icons/percussion-10.wav # OK sound
R 50 2048 48000 192.9us 100.3us 0.00 0.00 8 S32LE 2 48000 alsa_output.pci-0000_00_1b.0.analog-stereo
R 80 8192 16000 40.5us 134.0us 0.00 0.00 8 S16LE 1 16000 + paplay
aplay /usr/share/sounds/sound-icons/percussion-10.wav # OK sound
R 50 2048 48000 167.5us 94.1us 0.00 0.00 8 S32LE 2 48000 alsa_output.pci-0000_00_1b.0.analog-stereo
R 85 2000 16000 27.2us 122.1us 0.00 0.00 8 S16LE 1 16000 + ALSA Playback
pw-play --latency=512ms /usr/share/sounds/sound-icons/percussion-10.wav # NO sound
R 50 2048 48000 72.6us 83.3us 0.00 0.00 8 S32LE 2 48000 alsa_output.pci-0000_00_1b.0.analog-stereo
R 82 8192 16000 26.5us 30.9us 0.00 0.00 8 S16LE 1 16000 + pw-play
```
Since `clock.power-of-two-quantum = true`…
42ms = 2016/48000 rounds down to 1024/48000 = 21⅓ms
```
pw-play --latency=42ms /usr/share/sounds/sound-icons/percussion-10.wav # OK sound
R 50 1024 48000 87.1us 58.8us 0.00 0.00 1 S32LE 2 48000 alsa_output.pci-0000_00_1b.0.analog-stereo
R 61 672 16000 46.0us 25.5us 0.00 0.00 1 S16LE 1 16000 + pw-play
```
43ms = 2064/48000 rounds down to 2048/48000 = 42⅔ms
```
pw-play --latency=43ms /usr/share/sounds/sound-icons/percussion-10.wav # NO sound
R 50 2048 48000 68.1us 91.3us 0.00 0.00 1 S32LE 2 48000 alsa_output.pci-0000_00_1b.0.analog-stereo
R 61 688 16000 28.1us 23.6us 0.00 0.00 1 S16LE 1 16000 + pw-play
```
It appears to not be a specific problem with pw-cat, but a pipewire issue since mpv using pipewire also exhibits the same issue, but not with pulse:
```
mpv /usr/share/sounds/sound-icons/percussion-10.wav # OK sound, def. pipewire-buffer=20ms (rounds down 512/48000 = 10⅔ms)
mpv --pipewire-buffer=100 /usr/share/sounds/sound-icons/percussion-10.wav # NO sound, (rounds down 2048/48000 = 48000 = 42⅔ms)
mpv --ao=pulse --pulse-buffer=100 /usr/share/sounds/sound-icons/percussion-10.wav # OK sound
```
Thank you.https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3361There should be a way to set the initial volume of every node with rules.2023-08-07T09:52:17Zkenji amanoThere should be a way to set the initial volume of every node with rules.I want a specific application to start with a specific initial volume. I also want my loopback sinks to start with specific initial volumes configured by rules in my config files instead of files in `~/.local/state/wireplumber` which sav...I want a specific application to start with a specific initial volume. I also want my loopback sinks to start with specific initial volumes configured by rules in my config files instead of files in `~/.local/state/wireplumber` which saves every little adjustment I don't want to persist.
I also want some device nodes to appear with specific initial volumes I configured in my config files.
I want initial volumes to be set according to rules that I present to pipewire and wireplumber.
I can't configure this with `stream.rules` in client.conf, pipewire.conf, or `stream_defaults.rules` in wireplumber.