wineasio / wineasio

ASIO to JACK driver for WINE
GNU General Public License v2.0
250 stars 26 forks source link

Unable to register on Ubuntu 24.04 in Bottles #99

Open RcandLegos opened 1 week ago

RcandLegos commented 1 week ago

Hello, I am running Ubuntu 24.04 and am trying to lower the latency of Ableton Live 10 running in Bottles. I am new to wineasio and audio on linux in general. I have installed the Ubuntu Studio audio packages and I am pretty sure jack is working because in QjackCLT it shows that the server started.

I am running soda 9.0-1 in bottles and I have made sure wineasio64.so is in /usr/lib/x86_64-linux-gnu/wine/x86_64-unix and wineasio64.dll is in /usr/lib/x86_64-linux-gnu/wine/x86_64-windows

I have also placed both in /opt/wine-stable/lib64/wine/

I don't know if these are the correct places to put the dll files sense I am running Ableton in a bottle.

When I ran the registration I made sure I was in the correct PREFIX. My Ableton install is located at: WINEPREFIX=/home/(USER)/.var/app/com.usebottles.bottles/data/bottles/bottles/Ableton-Live-10

When I run wine64 regsvr32 /usr/lib/wine/x86_64-windows/wineasio.dll I get: 002c:fixme:winediag:loader_init wine-staging 9.20 is a testing version containing experimental patches. 002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org. 002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (126). 00bc:err:module:import_dll Library portcls.sys (which is needed by L"C:\\windows\\system32\\drivers\\teVirtualMIDI64.sys") not found 00bc:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\teVirtualMIDI64": c0000142 003c:fixme:service:scmdatabase_autostart_services Auto-start service L"teVirtualMIDI64" failed to start: 1114 00f8:fixme:powrprof:PowerGetActiveScheme (0000000000000000,000000000148FD40) stub! 00f8:fixme:powrprof:PowerGetActiveScheme (0000000000000000,000000000148FA00) stub! 00f8:fixme:powrprof:PowerGetActiveScheme (0000000000000000,000000000148FB90) stub!

I don't know if this is user error or a problem with "wineasio" so I hope I am posting this in the correct place ;)

I hope this is enough information to get you started. Ableton is the last piece of software that I need to fully switch to Linux from Windows. I would be super excited to get this working meaning I would never have to look at Windows again!

McGaelen commented 4 days ago

I'm also trying to run Ableton Live 11 in Bottles, here's what I did:

git clone --recurse-submodules https://github.com/wineasio/wineasio.git
sudo apt install libjack-jackd2-dev # JACK audio development headers
# The development headers for wine were in a _second_ wine subfolder for some god forsaken reason
sudo cp -r /usr/include/wine/wine/* /usr/include/wine/
cd wineasio # go to where you cloned the repo
make 64
WINEPREFIX=~/.var/app/com.usebottles.bottles/data/bottles/bottles/<NAME OF BOTTLE> ./wineasio-register

For some reason, the installation of the wine dev headers were in a second wine subfolder (/usr/include/wine/wine) which meant that when I tried to compile the source (make 64) it would throw an error saying it couldn't find a header file:

asio.c:44:10: fatal error: objbase.h: No such file or directory
   44 | #include "objbase.h"
      |          ^~~~~~~~~~~

So to fix that, I had to copy everything inside the second wine folder into the parent one.

And once all that was figured out, I was finally able to see the Wine ASIO driver as an option in Ableton, but it throws an error when I try to select the driver (Failed to open the audio device "WineASIO Driver."). Hopefully this works for you and you can get farther than I did.

RcandLegos commented 3 days ago

Thanks, I am having the same error Failed to open the audio device "WineASIO Driver." When I go into the registry editor, wineASIO doesn't show up. Maybe that has something to do with it?

McGaelen commented 3 days ago

Same, I don't see it in my registry either, and I'm not really sure what to do about it.