HOWTO: reaper on ubuntu linux with wineasio
you may have already heard about reaper. if not, reaper is an extremely powerful digital audio workstation brought to you by the creator of winamp. it’s also very reasonably priced. unfortunately, it’s also windows based, which presents a problem for people like me who avoid microsoft products like the plague. reaper can run under linux with wine, but up until recently that solution has left a lot to be desired (even compared to current linux-based audio production solutions). the reason for this is because reaper had to use the standard wavemapper interface to get audio to play. to put it mildly, that sucks. even then it was very unreliable.
你可能听说过reaper。如果没有，reaper是由winamp的作者为你带来的非常强大的数字音乐工作站。它的价格也非常可观。很不幸的是，它是基于windows的软件，对于那些像我一样讨厌microsoft的人来说，这里就存在一个问题了。reaper可以用wine在linux下运行，但是but up until recently that solution has left a lot to be desired (even compared to current linux-based audio production solutions).（不知怎样翻译才合适）原因是reaper必须使用标准的wavemapper接口来播放音乐。to put it mildly, that sucks.甚至它非常不可靠。
the other day, my friend aaron (pipelineaudio) turned me on to a project called wineasio (or wine asio). what this does is allow reaper to use the asio interface, which works much better. wineasio takes the connections from the asio interface and exposes them to jack, which gives you a whole world of routing and configuration possibilities as well as a reasonably low latency interface to your soundcard. so, let’s get started.
有一天，我的朋友aaron（玩管弦乐的？？）给我看了一个叫wineasio（wine asio）的工程。这个工程就是为了让reaper能够使用asio接口，这样效果会更好。wineasio takes the connections from the asio interface and exposes them to jack, which gives you a whole world of routing and configuration possibilities as well as a reasonably low latency interface to your soundcard.让我们开始吧。
first things first, you need to be running ubuntu and it needs to be the x86 desktop version 7.04 (feisty). you need to make sure you’re up to date and that your sound already works. if you need help with any of those things, please look for it in the ubuntu forums. once you’re sure you have all of those things, we need to install a few pieces of software. here are the packages we’ll be installing:
if one were so inclined, he could search for the above packages in synaptic and install them there, but we’ll be using apt-get to do this, so click on applications > accessories > terminal. type or copy and paste the following command to install everything:
sudo apt-get -y install wine wine-dev libjack0.100.0-dev \
qjackctl build-essential linux-lowlatency
after you put in your password, this is going to download and install about 64mb worth of stuff, so if you’re on a slow connection it might take a while. this is a good chance to get a cup of coffee, a sandwich or spend some time in the thinking room. when it finishes, go ahead and reboot your computer and be sure to boot up with our shiny new low-latency kernel.
once you’re back to your desktop, we need to jump on the web and download some more stuff. the first thing we need to get is wineasio. as of this writing, the file we need is wineasio-0.1.tar.gz. just download that right to your desktop. the next thing we need is the steinberg asio-sdk. unfortunately, i can’t provide a direct link to the archive, so you’ll need to agree to the license and enter some info to get to the download. the file you’re after is asiosdk2.2.zip, and make sure you put it on your desktop with wineasio-0.1.tar.gz. while you’re at it, go ahead and download the newest version of reaper to your desktop as well.
进入系统后，还需要下载一些东西才行。首先你要下载wineasio-0.1.tar.gz，另外你还需要下载the steinberg asio-sdk，就是asiosdk2.2.zip，最后就是下载最新版的reaper啦。所有文件都放在你的desktop文件夹下。
after you get those 2 files downloaded, let’s get back to our terminal. we need to change directories to the desktop with this command:
next we need to extract the two archives we just downloaded with these commands:
tar zxvf wineasio-0.1.tar.gz
now, we need to change to the wineasio directory and copy in the asio.h file from the asio sdk. we can do that with these commands:
cp ../ASIOSDK2/common/asio.h .
now we need to compile wineasio with one very simple command:
as long as you don’t see any errors (warnings are ok), then it compiled fine and we can install it with this command:
编译完成后就可以安装了，当然要没有任何 error ，有warning的话也没问题。
sudo make install
you may need to put in your password again before it will go. now we need to register the wineasio.dll with wine using this command:
now we need to create a symlink that wineasio looks for so it can use jack:
sudo ln -s /usr/lib/libjack-0.100.0.so.0 /usr/lib/libjack.so.0
now it’s time to set up wine to work with reaper. type this command at your terminal to bring up the wine configuration:
this will hopefully pop up the wine configuration window which should look something like this…
you need to change the “windows version” at the bottom to windows xp. then click on the audio tab at the top. there will probably be some delay and a popup telling you there is no default audio driver or something. go ahead and just close the popup and you should have the audio configuration window which looks something like this…
here you want to make sure that jack is the only driver selected. once you’ve done that, go ahead and click apply and then click ok.
now click on applications > sound & video > jack control. this little utility is very important. this is what you’re going to use to adjust your buffer settings and latency and whatnot. it should look like this:
点击applications > sound & video > jack control，这一步很重要。（按图片提示）
go ahead and click on the setup… button on the right, which will give you a screen similar to this one:
the settings in the screenshot are the ones that ended up working for me. you can use them as a starting point, but eventually you’ll want to experiment and find something that works best with your hardware. the frames/period and periods/buffer are what determine your latency. you can see in the lower right hand corner what your latency will be, so try to pick some settings that seem sane for your hardware. once you’re satisfied with what you’ve done, click ok to close the setup window.
hopefully, the display will light up like the above screenshot. if it does, you’re in business. now it’s time to install reaper. right click on the icon for the reaper install and choose “open with other application…” from the menu. you should get a window similar to this one:
click on “use a custom command” at the bottom of the window and type in wine like i did above. then just click the open button. this will run the reaper installer. just click through it like you normally would if you were running windows. when it asks if you want to run reaper, say yes. close the project settings window, close the error about not being able to initialize audio and close the registration window. in the very upper right hand corner, click where it says [audio device closed]. this will bring up the reaper preferences, which should look something like this:
in the audio system drop down box, choose asio. this should make your configuration look pretty similar to mine as shown above. we need to make sure we’re using the wine asio driver and that there are some inputs showing up. if there are, then click ok and try playing the sample project. with any luck, you’ll be treated to the glorious sounds of reaper. but, there’s probably a good chance it’s going to click and pop and stutter or do something else nasty. if it does, close reaper and stop the jack control. adjust the jack settings for latency we looked at earlier, start the jack server and double click the reaper icon on your desktop and try again. it’s a trial and error thing but you should eventually be able to get it to play smoothly.
lastly, if you click on the connect button on the jack control while reaper is running, you’ll get this screen:
from here you can do any routing you need to do. the alsa connections correspond to your hardware and the asio ones correspond to the ones in reaper.
anyway, that’s it. if you want to chat or discuss any of this, you can find me in #reaper on irc.cockos.com as daveisadork. good luck!