[Bug]: Freetube doesn't respect audio settings
Guidelines
- [X] I have encountered this bug in the latest release of FreeTube.
- [X] I have searched the issue tracker for open and closed issues that are similar to the bug report I want to file, without success.
- [X] I have searched the documentation for information that matches the description of the bug I want to file, without success.
- [X] This issue contains only one bug.
Describe the bug
- Play a video
- Audio starts playing over the wrong speaker
Alternatively:
- Mute audio volume in OS
- Play a video in Freetube
- Audio still plays (over the wrong speaker)
Expected Behavior
Audio should play over my headphones, since it's set as default audio device, and the volume should be adjusted to whatever my global audio volume is set to.
Issue Labels
usability issue
FreeTube Version
v0.18.0 Beta
Operating System Version
Ubuntu 22.04.1 LTS
Installation Method
Flathub
Primary API used
Local API
Last Known Working FreeTube Version (If Any)
No response
Additional Information
I also tried installing with APT, but the issue persisted.
I haven't encountered this behaviour with other apps on my system.
Nightly Build
- [x] I have encountered this bug in the latest nightly build.
I am on Ubuntu 22.04.1 LTS x86_64, Kernel: 6.0.0-11.2-liquorix-amd64, sound PulseAudio (on PipeWire 0.3.60) and I have no issue with Freetube (v0.18.0 Beta appimage) while I change sound output between S/PDIF, HDMI and headphones. This no matter if the sound is already playing or I stop playback of video on Freetube between switching output devices.
I experience similar issues but not related to Freetube.
For me it seems to be a PulseAudio issue. My os settings have one audio device selected (e.g. wireless headphones). But seemingly randomly a program will play out of a different audio device.
If I then go into pulse audio settings it has chosen a different device for that one app and this is not the audio device selected in the OS sound settings - once i change it in pulse audio to the right device I can hear the output again.
It only seems to affect a single program at a time others will be fine and is not consistent. I have yet to determine why this happens.
For reference i'm on Manjaro. Also the system sound bar will only affect the volume of the chosen device, it is not actually a global volume bar.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Possibly related - on my machine FreeTube's audio streams show up as chromium on Pipewire:
I've found that whatever output device is set, is used for all Electron apps that show up as chromium.
Bumped into this because inadvertently changed the audio settings for FreeTube while fixing audio for another app. Wonder if the same has happened here? Once set, it will override the default:
$ grep -ri chromium ~/.local/state/wireplumber/
...
/home/simon/.local/state/wireplumber/restore-stream:Output/Audio:application.name:Chromium:target=music
Info on my setup:
uname -a
Linux simon-pc 6.7.0-arch3-1 #1 SMP PREEMPT_DYNAMIC Sat, 13 Jan 2024 14:37:14 +0000 x86_64 GNU/Linux
pipewire --version
pipewire
Compiled with libpipewire 1.0.1
Linked with libpipewire 1.0.1
wireplumber --version
wireplumber
Compiled with libwireplumber 0.4.17
Linked with libwireplumber 0.4.17
Freetube Version: v0.19.1 Beta via Flatpak
EDIT: added wireplumber --version
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.
@alexkeizer are you still running into this issue on v0.20.0?
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
This one is still an issue & from my understanding - there isn't really anything that can be done here until https://github.com/electron/electron/issues/27581 is resolved, because the OS will treat all Electron-based apps with the same audio settings