LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-19-2018, 03:32 PM   #1
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
WINE (Proton), jack, OBS?


Slackware 14.2, not using pulse.

So I got OBS studio working awesomely well recording using Alien Bob's directions here: https://alien.slackbook.org/blog/set...-in-slackware/

I can record linux native games just fine. I can play sound files while recording WINE (via proton) games just fine. What I can't do is get audio out of WINE things.

They say that you should bridge ALSA to jack, which is what I'm doing already. https://wiki.winehq.org/Sound#What_about_JACK.3F I've set the WINE program (specifically No Man's Sky) to use ALSA.

any ideas? Or should I just stick to streaming games that run natively on Linux? :P
 
Old 10-19-2018, 05:06 PM   #2
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,780

Rep: Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431Reputation: 4431
Greets
It might matter what sort of sound device you have such as PCI, USB, etc but I, too, am running 14.2 Multilib with the absolute minimum, and mostly fake< pulseaudio components. I do this because my box is also a DAW and I record Live as well as edit recordings. Also, I'm a pretty avid gamer and I use Steam-Proton as well as a separate Wine but only for games, nothing else, and have a long history with Wine for Gaming. Wine does have some oddball issues with sound but it works for me 99% of the time.

Currently I'm using wine-staging-pba 3.16 (had some graphics issues with 3.18, possibly of a similar nature) but the way I get sound in Wine hasn't changed for well over a decade on much simpler versions of wine, so I'd imagine this will work for you whatever wine version you use.

Let me explain briefly the weirdness I see that I have never been able to fully understand and "fix". I launch games from command line and after an initial setup use the "WINDEBUG=-all" conditional so the errors I get are likely not solely from Wine but from games employing it. They often say ....

Code:
 ALSA lib pcm_hw.c:1820:(_snd_pcm_hw_open) Invalid value for card
... yet sound works just fine. Both Wine and each game specifies "System Default" and many of them won't work if I specify the exact sound device card instead. I use a $HOME/.asoundrc file to declare the card as Default. I use JACK extensively in recording but don't bother in games, Wine or native. In Wine, I run "winecfg" and under the "Audio" tab it shows "System Default" selected and the "Test" button verfies it's working.

So TLDR I suspect all you need to do is declare your Default Device in ALSA, either globally or in your user file, and then test with winecfg. It should work even w/o JACK. FWIW look up your exact sound device in alsa-project's asoundrc wiki and get some specific clues as to what works for others.

You may also need a few packages like OpenAl. If you'd like a complete list of useful but missing libraries and especially if you use Wine a lot and for other things besides gaming, you might consider Codeweavers Crossover. The single use version is quite reasonable in cost and there is a free trial. Under "System Information" it logs a lot of valuable info including what libraries are missing along with an explanation of what those libraries pertain to and how urgently (or not) they might be needed. FWIW Codeweavers is the "paid for" branch of Wine and obviously worthy of support since working with them is how Steam-Proton came about.

Last edited by enorbet; 10-19-2018 at 05:12 PM.
 
Old 10-19-2018, 05:26 PM   #3
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,527

Original Poster
Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
I'm going to install Steam under WINE and see if it's a proton thing or not. I've had Proton behave very differently than stock wine or wine-staging. Proton is great if you don't need to tweak anything. If you do, you're kind of out of luck sometimes.

I was using the "test sound" function under winecfg (called as "WINEPREFIX=/path/to/long/Steam/compdata/gameID/pfx winecfg"), and was getting sound. I then started the game, and there was no sound. But I could get sound on the recording, if I played music via vlc or something else. So there is sound getting through the alsa/jack bridge, just not WINE.

OpenAL: already installed. I get sound fine when I'm not running jack and WINE programs.
 
Old 10-19-2018, 10:10 PM   #4
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,527

Original Poster
Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Woohoo! Figured it out. I didn't have the correct device selected in winecfg. It shouldn't have been my soundcard, but rather loopback. And now there's sound!

Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] New Steam Play/Proton garpu Slackware 140 04-11-2020 09:58 AM
LXer: Play Windows games on Fedora with Steam Play and Proton LXer Syndicated Linux News 0 10-08-2018 03:44 PM
OBS-Studio are not opening Candelabrus Gentoo 0 09-08-2017 08:54 PM
LXer: Jack Write Linux, Jack Go Bankrupt... LXer Syndicated Linux News 0 09-09-2007 06:20 PM
Wine and Jack Jonasx Linux - Software 0 09-26-2005 12:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration