Only a few seconds of the sample played in Java Sound demo
- PipeWire version:
pipewire Compiled with libpipewire 0.3.56 Linked with libpipewire 0.3.56
- Distribution and distribution version: Arch Linux x86_64
- Desktop Environment: Gnome
- Kernel version (
uname -r
): 5.18.15-arch1-1
Description of Problem:
Only a few initial seconds are played in Java Sound demo (https://www.oracle.com/java/technologies/java-sound-api.html), then the application becomes unresponsive. Other Java applications are affected in a similar way (tested with JOSM).
How Reproducible:
This can be reproduced always on my 3 physical machines, all running Arch.
Steps to Reproduce:
- retrieve and uncompress Java sound demo
curl -s https://www.oracle.com/technetwork/java/javasounddemo-150249.zip | jar x
cd JavaSoundDemo && java -jar JavaSoundDemo.jar
- click on 1-welcome.wav in Juke Box tab
- click Start button
- listen to the sample
- make sure it's played completely ("Welcome to the world of Java sound. With the new Java Sound API you can .. was created using Java Sound.")
Actual Results:
Only a few seconds are played ("Welcome to the world"), then the sound suddenly stops and several seconds after the application stops responding to user input.
Expected Results:
Sample is played completely.
Workaround:
What worked for me was replacing pipewire-pulse
by pulseaudio
and pulseaudio-bluetooth
. On Arch it looked as follows:
$ paru -S pulseaudio pulseaudio-bluetooth
resolving dependencies...
looking for conflicting packages...
:: pulseaudio and pipewire-pulse are in conflict. Remove pipewire-pulse? [y/N] y
Packages (3) pipewire-pulse-1:0.3.56-1 [removal] pulseaudio-16.1-1 pulseaudio-bluetooth-16.1-1
Total Installed Size: 6.21 MiB
Net Upgrade Size: 5.72 MiB
:: Proceed with installation? [Y/n]
The goal however is to use pipewire
as instead of pulseaudio
.