1
0
Fork 0

add wineasio setup page

This commit is contained in:
Agatha Lovelace 2021-06-15 20:42:29 +03:00
parent 36533c8906
commit 9e137117eb
No known key found for this signature in database
GPG Key ID: 2DB18BA2E0A80BC3
1 changed files with 61 additions and 0 deletions

61
wineasio-setup.md Normal file
View File

@ -0,0 +1,61 @@
# Setting up JACK with PulseAudio on ArchLinux
Add user to required groups:
```sh
sudo usermod -aG realtime,audio,disk agatha # you might not be agatha
```
Add this to `/etc/security/limits.conf`:
```
@audio - rtprio 95
@audio - memlock unlimited
```
Log out and back in
Install required packages:
```sh
yay -S mpg123 lib32-mpg cadence-git jack2 pulseaudio-jack
```
Build and install wineasio separately
```sh
cd /tmp
git clone https://aur.archlinux.org/wineasio.git
cd wineasio/
makepkg -si
```
Copy the .dll's into the right places. Paths might slightly differ depending on distro and wine version:
```sh
cd src/wineasio-1.0.0/
sudo cp build32/wineasio.dll.so /usr/lib32/wine/i386-unix/wineasio.dll.so
sudo cp build64/wineasio.dll.so /usr/lib/wine/x86_64-unix/wineasio.dll.so
```
Register the .dll for wine32 and wine64:
```sh
regsvr32 /usr/lib32/wine/i386-unix/wineasio.dll.so
wine64 regsvr32 /usr/lib/wine/x86_64-unix/wineasio.dll.so
```
(If you're using FLStudio with wine32 or a different wineprefix, adjust the paths accordingly. Some DAWs might not require this.)
```
cp build64/wineasio.dll.so .wine/drive_c/windows/system32/wineasio.dll
cp build64/wineasio.dll.so .wine/drive_c/windows/system32/wineasio.dll.so
```
In Cadence;
* Configure jack settings similar to this
* In main menu, set ALSA Bridge Type to `ALSA → PulseAudio → JACK (Plugin)`
![Engine settings tab: Realtime is checked, Realtime priority is 95. Everything else is default.](https://i.imgur.com/dDAdm1m.png)
![Driver settings tab: ALSA driver selected, with duplex mode on. The input device is the audio interface and the output device is the default audio output. Input and Output channels are both at 0. Sample rate is 44100 and buffer size is 2048. Periods per Buffer are set to 2.](https://i.imgur.com/22O1Lne.png)
Sample rate and buffer size values might need to be adjusted.
In FL Studio audio settings, select WineASIO.
Before starting any DAW that uses WineASIO, remember to start the JACK server through Cadence and don't forget to switch your system audio output to the JACK sink.
![Jack sink (PulseAudio JACK Sink) is selected as audio output in gnome settings.](https://i.imgur.com/E3KwJOs.png)