求助!!wine-asio (已解决)

Wine、Cedega、CrossOver 等配置
回复
sunpeixi
帖子: 16
注册时间: 2007-04-30 0:34

求助!!wine-asio (已解决)

#1

帖子 sunpeixi » 2007-10-14 13:02

我想,缺少合适的音频驱动是在linux上使用一些像NUENDO/SONRA/FLstdio/等专业midi/音频软件的主要障碍。
一旦解决这个难题,可能就会有越来越多的人从win下走到Linux上来。
我们知道windows上通用的专业音频驱动是由Steinberg公司开发的ASIO驱动。ASIO可以绕过windows操作系统直接与硬件沟通。具有非常低的延迟和良好的音质。更重要的一点是ASIO项目是开放代码的。

国外有个wine-asio的项目,我看到网站上的视频演示成果后非常兴奋!但这个方面的介绍国内竟然一点也没有。苦于自己基础太差,下了文件好久也没搞定。
所以恳请大家帮忙详细的讲解一下安装步骤。或者您亲自安装测试一下。期望您不厌其烦,为国内的音频玩家带来福音。拜托了!

我下载相关文件和视频的网址在这:
http://ladspavst.linuxaudio.org/?q=node/2036#comment-11
上次由 sunpeixi 在 2007-10-15 21:37,总共编辑 1 次。
sunpeixi
帖子: 16
注册时间: 2007-04-30 0:34

#2

帖子 sunpeixi » 2007-10-14 13:13

非常希望得到版主支持。因为这实在太重要了! :oops:
sunpeixi
帖子: 16
注册时间: 2007-04-30 0:34

#3

帖子 sunpeixi » 2007-10-14 15:30

头像
windowssux
帖子: 618
注册时间: 2006-08-06 16:58
来自: 北海

#4

帖子 windowssux » 2007-10-14 17:18

好东西,这样就好多了。
gmlbh
帖子: 406
注册时间: 2006-03-21 10:47

#5

帖子 gmlbh » 2007-10-15 21:23

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:

首先,你必须进入你的ubuntu系统,而且必须是7.04版。你须把你的系统升级到最新而且保证你的声卡正常工作。如果有什么问题,你上ubuntu的论坛上找解决方法吧。你要安装wineasio的话,你首先要安装下面几个软件包。

wine
wine-dev
libjack0.100.0-dev
qjackctl
build-essential
linux-lowlatency

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.

(一段废话),安装完成后重启,用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:

然后打开终端,输入

cd ~/Desktop

next we need to extract the two archives we just downloaded with these commands:

用以下命令解压下载回来的压缩文件

tar zxvf wineasio-0.1.tar.gz
unzip asiosdk2.2.zip

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:

用以下命令复制asio sdk里面的asio.h到wineasio文件夹下

cd wineasio-0.1
cp ../ASIOSDK2/common/asio.h .

now we need to compile wineasio with one very simple command:

用以下命令开始编译

make

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:

用以下命令来注册wineasio.dll

regsvr32 wineasio.dll

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:

开始配置wine来运行reaper了,在终端下输入以下命令

winecfg

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…

把windows版本改成xp,然后点击audio项

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.

只选jack项

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:

点击setup(按图片提示)

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!

(未完待续,或者其他人继续)
sunpeixi
帖子: 16
注册时间: 2007-04-30 0:34

#6

帖子 sunpeixi » 2007-10-15 21:45

谢谢楼上的!昨天升级到7.10,原先遇到的所有问题都完美解决。
太爽了!
事实证明:wineasio有着几乎和Windows下asio一样强劲的低延迟并且非常节省cup资源!
你能理解吗?这将让我的很多想法得以实现。下一步我就将安装cubase进行进一步的测试(其实前面我装过,但是没有asio驱动无法工作).我想这是Linux音频驱动的一个里程碑!虽然目前还只能在wine的环境中实现。我坚信未来会有更加成熟的技术,实现原生的Linux ASIO!

我会陆续把一些心得写在下面。
头像
windwiny
帖子: 2254
注册时间: 2007-03-13 17:26

#7

帖子 windwiny » 2007-10-15 21:53

低延迟 是什么意思?

音质更好?
sunpeixi
帖子: 16
注册时间: 2007-04-30 0:34

#8

帖子 sunpeixi » 2007-10-15 22:01

声音延迟在进行多轨录/混音或者调用vst插件时才会明显。和音质本身其实没什么关系。
但由于ASIO驱动可以绕过操作系统,所以对声音不会有什么染色,应属于忠实的还原。
回复