JACK Audio in Wine 1.4

Optimize your system for ultimate performance.

Moderators: khz, MattKingUSA

JACK Audio in Wine 1.4

Postby falkTX » Thu Mar 08, 2012 4:21 pm

Hey there everyone!

Wine 1.4 has been released and in the new version JACK Audio support has been dropped :(
(This is not related to WineASIO, that still works as usual).

Upgrade to this version is recommended, but what to do about JACK Audio, say in Games and general applications that don't use WineASIO?
The answer is here -> http://wiki.winehq.org/Sound (Check "Using snd-aloop with JACK")

I've been using it myself for ~2 months now and it works great on Ubuntu 12.04.
I need to manually run 'sudo modprobe snd-aloop' first, but even that can be scripted.

If you're running Wine 1.4, please give it a test.
This is the implementation I'll be using for all ALSA sound in KXStudio for 12.04.


PS: If you're wondering... yes, I made that asoundrc and python script.
Thanks to JackWinter for his initial asoundrc config!
User avatar
falkTX
Establlshed Member
 
Posts: 2415
Joined: Sat Jan 09, 2010 3:04 pm

Re: JACK Audio in Wine 1.4

Postby GMaq » Sat Mar 10, 2012 5:15 pm

Hi,

This doesn't affect Ardour with WinVST I assume since it doesn't use JACK set up in the Wine config either so the amount of apps really affected should be quite small. falktx do you have an -rt patch for 1.4 or does it utilize the same patch used in 1.3.24 ?
User avatar
GMaq
Establlshed Member
 
Posts: 319
Joined: Fri Sep 25, 2009 1:42 pm

Re: JACK Audio in Wine 1.4

Postby falkTX » Sat Mar 10, 2012 5:25 pm

GMaq wrote:Hi,

This doesn't affect Ardour with WinVST I assume since it doesn't use JACK set up in the Wine config either so the amount of apps really affected should be quite small. falktx do you have an -rt patch for 1.4 or does it utilize the same patch used in 1.3.24 ?


afaik, the patch remains the same, and should still be compatible.
I'm waiting for Ubuntu 12.04 to get the final Wine1.4, then I'll try it.

And you're right about ArdourVST. This asoundrc+script "trick" is only for the native Windows apps, not Wine-mixed ones (like ArdourVST, fst/festige, dssi-vst, lmms-vst, etc).
It's useful for at least games and media players.
User avatar
falkTX
Establlshed Member
 
Posts: 2415
Joined: Sat Jan 09, 2010 3:04 pm

Re: JACK Audio in Wine 1.4

Postby Capoeira » Sat Mar 10, 2012 7:30 pm

falkTX wrote:The answer is here -> http://wiki.winehq.org/Sound (Check "Using snd-aloop with JACK")


the snd-aloop entrie is gone :(
anybody knows where it's gone?
User avatar
Capoeira
Establlshed Member
 
Posts: 1112
Joined: Tue May 12, 2009 1:01 pm
Location: Brazil

Re: JACK Audio in Wine 1.4

Postby falkTX » Sat Mar 10, 2012 7:42 pm

Capoeira wrote:
falkTX wrote:The answer is here -> http://wiki.winehq.org/Sound (Check "Using snd-aloop with JACK")


the snd-aloop entrie is gone :(
anybody knows where it's gone?


Thanks for reporting, I'll speak to the Wine devs and ask why they did this.

Here's a working link:
http://wiki.winehq.org/Sound?rev=50
User avatar
falkTX
Establlshed Member
 
Posts: 2415
Joined: Sat Jan 09, 2010 3:04 pm

Re: JACK Audio in Wine 1.4

Postby Capoeira » Sat Mar 10, 2012 10:33 pm

falkTX wrote:
Capoeira wrote:
falkTX wrote:The answer is here -> http://wiki.winehq.org/Sound (Check "Using snd-aloop with JACK")


the snd-aloop entrie is gone :(
anybody knows where it's gone?


Thanks for reporting, I'll speak to the Wine devs and ask why they did this.

Here's a working link:
http://wiki.winehq.org/Sound?rev=50


thanks, I saved the html now.
Did you create the "code"?
If so, could you point out the diference to this: http://alsa.opensrc.org/Jack_and_Loopba ... ack_bridge ??
User avatar
Capoeira
Establlshed Member
 
Posts: 1112
Joined: Tue May 12, 2009 1:01 pm
Location: Brazil

Re: JACK Audio in Wine 1.4

Postby falkTX » Sat Mar 10, 2012 11:22 pm

Capoeira wrote:Did you create the "code"?
If so, could you point out the diference to this: http://alsa.opensrc.org/Jack_and_Loopba ... ack_bridge ??


Yes I did that code myself.

Main differences:
- my script gets the currently running jack buffer-size and sample-rate. you don't need to set them manually.
- auto-adapts to buffer-size changes on the fly
- the script and alsa_in/out are stopped when jack stops
User avatar
falkTX
Establlshed Member
 
Posts: 2415
Joined: Sat Jan 09, 2010 3:04 pm

Re: JACK Audio in Wine 1.4

Postby Capoeira » Sun Mar 11, 2012 12:42 am

falkTX wrote:
Capoeira wrote:Did you create the "code"?
If so, could you point out the diference to this: http://alsa.opensrc.org/Jack_and_Loopba ... ack_bridge ??


Yes I did that code myself.

Main differences:
- my script gets the currently running jack buffer-size and sample-rate. you don't need to set them manually.
- auto-adapts to buffer-size changes on the fly
- the script and alsa_in/out are stopped when jack stops


thanks
User avatar
Capoeira
Establlshed Member
 
Posts: 1112
Joined: Tue May 12, 2009 1:01 pm
Location: Brazil

Re: JACK Audio in Wine 1.4

Postby Capoeira » Wed Mar 21, 2012 8:06 pm

falkTX, tried your python script, but I got a syntax error:

Code: Select all
[studio@myhost ~]$ ./.loopback
  File "./.loopback", line 92
    jacklib.jack_set_buffer_size_callback.argtypes =
                                                    ^
SyntaxError: invalid syntax
User avatar
Capoeira
Establlshed Member
 
Posts: 1112
Joined: Tue May 12, 2009 1:01 pm
Location: Brazil

Re: JACK Audio in Wine 1.4

Postby falkTX » Wed Mar 21, 2012 8:39 pm

Capoeira wrote:falkTX, tried your python script, but I got a syntax error:

Code: Select all
[studio@myhost ~]$ ./.loopback
  File "./.loopback", line 92
    jacklib.jack_set_buffer_size_callback.argtypes =
                                                    ^
SyntaxError: invalid syntax


Try to run the script with a different python version. Although it works with py2 and 3 on my system, python3 might have more changes that I don't know of yet.
I think 'python2' will work there (edit the file, 1st line)
User avatar
falkTX
Establlshed Member
 
Posts: 2415
Joined: Sat Jan 09, 2010 3:04 pm

Re: JACK Audio in Wine 1.4

Postby Capoeira » Wed Mar 21, 2012 9:16 pm

falkTX wrote:I think 'python2' will work there (edit the file, 1st line)


tried that, didn't resolve
User avatar
Capoeira
Establlshed Member
 
Posts: 1112
Joined: Tue May 12, 2009 1:01 pm
Location: Brazil

Re: JACK Audio in Wine 1.4

Postby falkTX » Wed Mar 21, 2012 9:29 pm

Capoeira wrote:
falkTX wrote:I think 'python2' will work there (edit the file, 1st line)


tried that, didn't resolve


try to force by running it manually, like:
Code: Select all
python ./.loopback
python2 ./.loopback
python3 ./.loopback


If it still doesn't work, you probably didn't copied the file properly or in it's entirety.
User avatar
falkTX
Establlshed Member
 
Posts: 2415
Joined: Sat Jan 09, 2010 3:04 pm

Re: JACK Audio in Wine 1.4

Postby Capoeira » Wed Mar 21, 2012 9:51 pm

falkTX wrote:
Capoeira wrote:
falkTX wrote:I think 'python2' will work there (edit the file, 1st line)


tried that, didn't resolve


try to force by running it manually, like:
Code: Select all
python ./.loopback
python2 ./.loopback
python3 ./.loopback


If it still doesn't work, you probably didn't copied the file properly or in it's entirety.


ok, I found the problem. I had copied the code 3 times tom make sure, but now I had a look at it and found out that my terminal program broke the line in the code causing the problem. I had to copy the code with a maximised terminal window to solve this.
Now it runs, only manually though
thanks
User avatar
Capoeira
Establlshed Member
 
Posts: 1112
Joined: Tue May 12, 2009 1:01 pm
Location: Brazil


Return to System Tuning and Configuration

Who is online

Users browsing this forum: No registered users and 0 guests