From 9e137117eb051e1eb9c1787b5b9c062d348d805e Mon Sep 17 00:00:00 2001 From: Agatha Rose Date: Tue, 15 Jun 2021 20:42:29 +0300 Subject: [PATCH] add wineasio setup page --- wineasio-setup.md | 61 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 wineasio-setup.md diff --git a/wineasio-setup.md b/wineasio-setup.md new file mode 100644 index 0000000..bb8f45c --- /dev/null +++ b/wineasio-setup.md @@ -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) \ No newline at end of file