Call for testing: foobar2000

They don’t work for me even when the window is in focus and selected, even testing an install in devmode :confused:

Checking the winehq page, it looks like there was an issue for it here (#16367). Reading through their discussion, I tested that the media buttons do work IF I have the window in focus and press Ctrl+[media]. It was supposedly fixed in wine version 1.7.47 - what version is the foobar snap using? If it’s earlier could you test it?

If not it may have been explicitly broken by the related issue (#1348), where they implemented a hack so it would ignore Ctrl+# commands without focus (I guess apps like photoshop were responding to Ctrl+Z and the like when they didn’t have focus).

I don’t know how to check the version the snap is using, but if it’s up to date I’ll update the ticket on the issue.

Also, jank way to fix this: foobar2000 does support command line arguments. For now at least, (in Ubuntu 18.04) I just set up four custom keyboard shortcuts (and disabled the default play/pause/stop/next/prev buttons) and added:

Play/Pause -> command: foobar2000 -playpause
Next       -> command: foobar2000 -next
Previous   -> command: foobar2000 -prev
Stop       -> command: foobar2000 -stop

This of course works everywhere and regardless of focus, but the side effect is that if you press one of these while foobar is closed, it will open foobar - and this will override any other media player actions. For my case it’s fine though since it’ll (continue to be) my dedicated media player.

Secondary minor issue though: it doesn’t support WMA files out of the box :wink:

I’ve fixed the WMA and WMV playback support should work now and make sure you remove .wine folder from ~/snap/foobar2000/common before launching player with new changes & snap is using the wine-stable 3.0.2.

Earlier I said media keys are working when player is focused those were dedicated multimedia keys on keyboard not shortcut keys.

Ah - ok, so the default shortcuts settings must have been intercepting the media keys on the OS layer, unless paired with something else making it unassigned. Disabling all the relevant shortcuts makes the keys work like you said: by themselves, if foobar2k is in focus. Thanks for the version info, I’ll see about updating the ticket on winehq.

Also thanks for the update for WMA - that was fast, and it works perfectly!

Hi, it works so far, but I cannot add folders to my media library which are stored on a NAS. I can see the folders, but I get an error message after adding them. Also, foobar won’t play files from the NAS when I drag and drop them into the playlist. Any idea how to solve this?

P.S. in the console it says “folder watching failure: access denied”

You try connecting snap to removable-media in order to get access in /media and /mnt if NAS is mounted there should access if not then mount it there.

snap connect foobar2000:removable-media

1 Like

Can I convert audio from audio cd?

You could try and report back though keep in mind that I don’t have system with cdrom so I can’t test this directly.

I checked this and I can say that you cannot convert audio from CD and cannot copy tracks from CD into computer. Maybe you need some help with this issue?

I can’t write ID3 tags to my audio files on my NAS. Does the snap need explicit permissions to be able to write to files on an external storage? I’m using smb://servername/folder to access the files

Sorry, a bit too quick on the trigger here - I see this was answered already:

snap connect foobar2000:removable-media

Also set up mount point for the NAS through /media/ and not through smb://

All good now.

Thank you very much, I was having an issue with foobar not being able to access my partitions / removable media and this absolutely fixed it. Very helpful!

The latest Foobar2000 update has broken the app, rendering it unresponsive. Console doesn’t report any errors. Anyone else experiencing this?

No such issues here though my install old. I think recent wine change to 6 from 2 days ago could have broke some thing in wineprefix.

Still unresponsive after the latest update.
When I go into winecfg I get these msgs. Could they be related to this problem?

$ foobar2000.wine winecfg
ALSA lib conf.c:3916:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default

Edit: Do you have some recommendations I could try to make it work?

I’m happy to report that a complete removal and reinstall of the snap package did the trick. Now it’s working again.

Foobar is acting a bit strange. Regarding my last messages, I’m again getting just a blank window with only the titlebar when launching Foobar2k. No errors in the console. The solution i found (except for the reinstall) was to run foobar2000 from the terminal with an audio file as parameter (maybe because it clears the old playlist?). ive not encountered this kind of issue before wine6 was introduced.

That blank issue could have caused by update that I did revert wine version to 3 but later reverted back to 6, I was testing audio issue which wine 3 fixes it but unfortunately it introduce other issue.

Regarding adding files to playlist I’ve added new changes to f2k snap which should now show Enqueue in foobar2000 in right click on files/dirs using openwith. So using foobar2000 only with parameter or with openwith will replace current playlist.

if you still want to add files using terminal then do this

foobar2000 /add ~/Music/some-file.mp3
foobar2000 /add ~/Music/some-dir

Is there any way of getting Foobar2k to work with Bluetooth media controls (Headphones pause/play/volume)? It’s enabled in the foobar2k settings, so it might be the something to do with wine settings or linux bt drivers?

Hello ! This adaptation is great. Thanks !

About keyboard media buttons, I’m not sure everyone has the same behavior, but mine aren’t working in snap foobar2000, even when the player window is focused, though they work perfectly outside (with other players).
If it works for nearly everyone when it’s focused, then what am I missing ?
If not, any news, in three years, about the wine/snap issue around these buttons ?

Other issue (though I’m not sure it’s the right thread for that, sorry if not) : foobar2000 will not add a library element to the playlist on a double click, though it does alright on Enter.
Known bug or am I again missing something ?

Thanks !