Compiling Audacity with Asio

Building and customizing Audacity from the source code.

If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like

Re: Compiling Audacity with Asio

Permanent link to this post Posted by cycloxt » Thu Nov 05, 2009 2:54 pm

Hi,

I am trying this without much knowledge (no previous compiling experience whatsoever), but am confident that I can pull it off. However, I do not have Visual Studio.

Using VB 2008 Express, the .dsw file opens and it asks me to overwrite the .sln file, but then a message pops up saying that some file types (.dsp?) are not supported. Is this because I am using VB or am I doing something wrong? Any suggestions :?:

I understand having Visual Studio makes sense if you do this sort of thing all the time, but I am just an acoustician... I will be glad to go through (almost) any trouble to use ASIO.

Thanks!!
cycloxt
 
Posts: 1
Joined: Thu Nov 05, 2009 2:41 pm
Operating System: Please select

Re: Compiling Audacity with Asio

Permanent link to this post Posted by derekja » Thu Nov 05, 2009 3:45 pm

yep, building anything on windows can be a nightmare alright.

If it is not opening the project then you likely have the wrong vs2008 express version installed. It is visual C++ that you want.

--Derek
derekja
 
Posts: 3
Joined: Sun Nov 01, 2009 3:36 am
Operating System: Please select

Re: Compiling Audacity with Asio

Permanent link to this post Posted by knibbeje » Sat Dec 05, 2009 4:33 am

Hi,
I have a few questions to follow up on compiling with ASIO support. First, I see that a compiled version cannot be redistributed without violating licensing but couldn't someone legally give it to someone else as long as they don't accept payment and as long as it is for personal use only?

If not, then I have a friend who is good with compiling in Linux but prefers to compile in Mac. Can someone email me some step by step directions and links for the material needed to compile in Mac? Is the Steinberg SDK a separate downlod for Windows than for Linux, Mac? I'd very much appreciate step by step help from those who have done it on LInux or preferrably mac.

Thanks so much,
JD
knibbeje
 
Posts: 4
Joined: Sat Dec 05, 2009 4:30 am
Operating System: Please select

Re: Compiling Audacity with Asio

Permanent link to this post Posted by steve » Sat Dec 05, 2009 4:55 am

I don't understand all the ins and outs of the license, but the license details are available if you Google for "steinberg asio license".

Guides for building Audacity from source code are available here: http://wiki.audacityteam.org/index.php? ... fic_Guides
Information specific to building ASIO support is here: http://wiki.audacityteam.org/index.php? ... _Interface
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 44997
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Compiling Audacity with Asio

Permanent link to this post Posted by knibbeje » Sat Dec 05, 2009 3:51 pm

Steve,
Thanks for the links, but I was aware of these links in the past. The part I'm missing (and part that would help if someone who had done this before on Mac could email me step by step) is the adding ASIO as it applies to the Mac. The ASIO link you gave seems to apply to Windows, not sure about Mac. I think I can get the Mac Audacity compiles but not sure how to add the ASIO. If someone could help further that would be great! We could settle for Linux as well if someone has easier instructions they wouldn't mind sending me.

Thanks!
JDK

Also, I don't see the page relating to soundcards that support multitrack recording has been updated in a while. Are there new sound cards/mixers that support multitrack in Audacity that others are aware of?

Thanks!
knibbeje
 
Posts: 4
Joined: Sat Dec 05, 2009 4:30 am
Operating System: Please select

Re: Compiling Audacity with Asio

Permanent link to this post Posted by steve » Sat Dec 05, 2009 4:59 pm

knibbeje wrote:We could settle for Linux as well if someone has easier instructions they wouldn't mind sending me.

For Linux, don't use ASIO, use Jack.
The performance of Jack running with a standard Linux kernel is roughly the same as ASIO on Windows. If your hardware will run correctly with an "rt" kernel, the performance of Jack is better.

Unfortunately Audacity has some issues with Jack, but there are simple (though slightly inconvenient) ways round these issues.

For recording with Jack, Ardour2 is tops. You can then use Audacity for sample editing either with a simple Jack set-up (straightforward routing of the Audacity inputs and outputs to the system inputs and outputs), or use Audacity with ALSA.

Sorry, can't help with the Mac question.

knibbeje wrote:I don't see the page relating to soundcards that support multitrack recording has been updated in a while.

Good point - all new information is most welcome.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 44997
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Compiling Audacity with Asio

Permanent link to this post Posted by Edwood » Thu Oct 14, 2010 3:32 am

Wow, this is the most horrendeously complicated procedure. I have a modicum of computer knowledge, and it's basically like trying to learn Greek from scratch.

Does anyone have a comprehensive step by step process? I am completely lost at the wxWidget part and have absolutely no clue what I'm doing in Visual Studio.

I'm thinking it might be easier to give up and learn how to use other programs that have ASIO support built in.

Really sucks, because I love how simple and easy Audacity is to use. :(
Edwood
 
Posts: 15
Joined: Tue Oct 12, 2010 9:40 pm
Operating System: Please select

Re: Compiling Audacity with Asio

Permanent link to this post Posted by Edgar » Thu Oct 14, 2010 7:08 am

This is what I gave to someone else to get them past wxWidgets:

Which compiler solution are you using? If you are not using Microsoft VC++ 2008 Express (it’s free) or Microsoft Visual Studio 2008 (you can get a free 90 day trial) I would suggest you consider doing so. Some of the following instructions are specific to the Microsoft Visual IDE.

I know a little bit less about the wxWidgets CodeBase but more about compiling problems with wxWidgets. If you run into problems getting the wxWidgets samples running feel free to ask, I may be able to help you. As with all things digitally logical it is imperative to follow the initial instructions explicitly. Make sure that before you do anything else you do those two file things (setup.h and #define wxUSE_ODBC) and set the environmental variable WXWIN. If you have tried to compile already without following these steps or are having failure to compile problems, completely delete wxWidgets, reinstall it, set the environmental variable, copy setup.h and then do the #define.

Make sure to choose the proper workspace—there are two vc++ 6 workspaces – wx.dsw and wx_dll.dsw, you absolutely must choose wx_dll to convert into a VC++ 9 Solution (that’s what VC++ and Visual Studio 2008 use). Use your favorite method to open wx_dll in VC++ 2008 Express (or Microsoft Visual Studio 2008). A dialog will open offering you the chance to “convert all” – do so. After all the conversion is done and IntelliSense is finished scanning all files (watch the status bar at the extreme lower left corner) close VC++ and say yes to saving the solution. You will now have a Visual Studio Solution—wx_dll.sln, from now on this is what you want to open in VC++.

Use the Configuration Manager (either from the toolbar or from the menu) to first build the Debug solution. Because the build order is not set correctly you may have to rebuild any given configuration a few times until you get zero errors.

After the Debug solution is built build the other configurations in this EXACT order: Release, Unicode Debug, Unicode Release, DLL Debug, DLL Release, DLL Unicode Debug, DLL Unicode Release. You may safely ignore all the Universal configurations.

Instead of trying to build the entire Sample solution that once, go in and choose a single sample; the last couple of days I have been working on the scroll sample, let’s try that specific one now.

Open the scroll folder and look for scroll.dsp (a VC++ project). Use your favorite method to open it in VC++ 2008 Express (or Microsoft Visual Studio 2008). A dialog will open offering you the chance to “convert all” – do so. After all the conversion is done and IntelliSense is finished scanning all files (watch the status bar at the extreme lower left corner) close VC++ and say yes to saving the solution. You will now have a Visual Studio Solution—scroll.sln, from now on this is what you want to open in VC++. Using the Configuration Manager use Unicode Debug to build a solution—if it runs build a Unicode Release solution, if that runs you are all set to go! If you cannot get to this point get back in touch with me with specific questions and problems.
Edgar
Forum Crew
 
Posts: 1479
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 7

Re: Compiling Audacity with Asio

Permanent link to this post Posted by Edwood » Thu Oct 14, 2010 8:58 am

Thanks Edgar. I'll give it a shot. I have tried to use Visual Studio C++ 2008 (do I need to install the other .exe like C# or Visual Basic?)

Thanks for giving me a better starting point. I'll try again.

I'm sure to have hundreds more questions.

-Ed
Edwood
 
Posts: 15
Joined: Tue Oct 12, 2010 9:40 pm
Operating System: Please select

Re: Compiling Audacity with Asio

Permanent link to this post Posted by Edgar » Thu Oct 14, 2010 3:21 pm

Edwood wrote:I have tried to use Visual Studio C++ 2008 (do I need to install the other .exe like C# or Visual Basic?)


No, nothing else is required other than the wxWidgets source installation. Sometimes there is a problem with Visual C++ 2008 Express (the free version not the full trial of Visual Studio) in that it fails to find a critical header file. The wxWidgets forum http://wxforum.shadonet.com/viewtopic.php?t=255 has some good information on this.

As this is really off topic, feel free to start a new thread or send me a private message if you have further problems compiling wxWidgets or Audacity. I have never tried to compile Asio, which is strange because I think it would allow me to use my audio hardware with Audacity.
Edgar
Forum Crew
 
Posts: 1479
Joined: Thu Sep 03, 2009 9:13 pm
Operating System: Windows 7

PreviousNext

Return to Compiling Audacity



Who is online

Users browsing this forum: No registered users and 2 guests