ASIO support in Audacity 2.4.2

Building and customizing Audacity from the source code.
Forum rules
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
steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

ASIO support in Audacity 2.4.2

Post by steve » Tue Jul 14, 2020 9:44 am

This post is only relevant to people that are building Audacity from source on Windows 10 for the purpose of adding support for ASIO.

At time of release, ASIO support was not available in the Audacity 2.4.2 code, but will be available again in Audacity 3.0.0.


At time of posting, Audacity 3.0.0 is in early alpha development and is not yet ready for production work, so one of the Audacity developers has kindly provided a patch for Audacity 2.4.2. This attached patch adds the ability to build Audacity 2.4.2 (on Windows 10) with ASIO support.
asio.patch
(2.39 KiB) Downloaded 279 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

micsthepick
Posts: 18
Joined: Fri Dec 21, 2018 1:41 am
Operating System: Windows 10

Re: ASIO support in Audacity 2.4.2

Post by micsthepick » Tue Jul 14, 2020 12:30 pm

I was going to try to just cherry pick 1ec7fd56c166f2d2a7c343d8f023fc2485d463dd on top of 2.4.2 Looks like this patch does exactly that. Will post again if it builds successfully

micsthepick
Posts: 18
Joined: Fri Dec 21, 2018 1:41 am
Operating System: Windows 10

Re: ASIO support in Audacity 2.4.2

Post by micsthepick » Tue Jul 14, 2020 12:57 pm

Audacity.exe compiles fine, and the two failing projects still fail, however there is still no ASIO support on the compiled exe

Apesbrain
Posts: 95
Joined: Sat Dec 04, 2010 4:58 pm
Operating System: Windows 10

Re: ASIO support in Audacity 2.4.2

Post by Apesbrain » Wed Jul 15, 2020 5:13 pm

steve wrote:
Tue Jul 14, 2020 9:44 am
At time of release, ASIO support was not available in the Audacity 2.4.2 code, but will be available again in Audacity 3.0.0.
Good news! Please go back to the old ASIO build methodology via "audacity.sln"; that worked well. Meantime, 2.4.1 does what I need. Thanks.

micsthepick
Posts: 18
Joined: Fri Dec 21, 2018 1:41 am
Operating System: Windows 10

Re: ASIO support in Audacity 2.4.2

Post by micsthepick » Thu Jul 16, 2020 4:47 am

I've submitted a PR, which the sole commit fixes the previous patch, so that ASIO does actually compile. Here is an updated patch.
asio.patch
(2.4 KiB) Downloaded 221 times
If you already applied the first patch then the following patch can be applied on top of that patch.
patch for patch.patch
(1006 Bytes) Downloaded 84 times
I was able to compile it in x32 Release with VSCE 2017.
Last edited by micsthepick on Fri Jul 17, 2020 10:50 pm, edited 1 time in total.

Apesbrain
Posts: 95
Joined: Sat Dec 04, 2010 4:58 pm
Operating System: Windows 10

Re: ASIO support in Audacity 2.4.2

Post by Apesbrain » Thu Jul 16, 2020 1:02 pm

How/where is this patch called into the build process? Is it referenced in CMake? Thanks.

micsthepick
Posts: 18
Joined: Fri Dec 21, 2018 1:41 am
Operating System: Windows 10

Re: ASIO support in Audacity 2.4.2

Post by micsthepick » Fri Jul 17, 2020 10:25 pm

Yes, if you install the patch, all you need to do is run CMAKE again, then build the solution that CMAKE generates - If you've already compiled WX.

doubleO7
Posts: 27
Joined: Thu Mar 21, 2013 9:23 am
Operating System: Windows 10

Re: ASIO support in Audacity 2.4.2

Post by doubleO7 » Thu Jul 23, 2020 10:13 pm

Hello everyone,

I have only very little programming skills, but I have always managed to compile the current Audacity version with ASIO support.

Unfortunately, in the current version 2.4.2 it does not work for me anymore. I get 38 errors when compiling and I think this is due to the missing ASIO patch that was provided here.

Maybe someone can tell me how exactly I can insert this patch into the source code.

I would be grateful for any help.

Best regards
Christian

micsthepick
Posts: 18
Joined: Fri Dec 21, 2018 1:41 am
Operating System: Windows 10

Re: ASIO support in Audacity 2.4.2

Post by micsthepick » Fri Jul 24, 2020 4:12 am

doubleO7 wrote:
Thu Jul 23, 2020 10:13 pm
Maybe someone can tell me how exactly I can insert this patch into the source code.
sure, use this tool: https://git-scm.com/docs/git-apply
it comes with git, so assuming that you managed to clone audacity/wxwidgets with the correct 3.1.3-audacity-fixes branch, then all you need to do is open a terminal in the audacity repo and run

Code: Select all

git apply asio.patch
sent from my phone

doubleO7
Posts: 27
Joined: Thu Mar 21, 2013 9:23 am
Operating System: Windows 10

Re: ASIO support in Audacity 2.4.2

Post by doubleO7 » Fri Jul 24, 2020 10:52 am

Hello micsthepick,
micsthepick wrote:
Fri Jul 24, 2020 4:12 am
sure, use this tool: https://git-scm.com/docs/git-apply
it comes with git, so assuming that you managed to clone audacity/wxwidgets with the correct 3.1.3-audacity-fixes branch, then all you need to do is open a terminal in the audacity repo and run

Code: Select all

git apply asio.patch
thanks so lot. That worked...sort of.

Audacity works, also the ASIO implementation but I still get these 38 errors during the compile process. Strangely enough, those errors do not occur when compiling Audacity 3.0.0 alpha. I will now see if everything I need is working and if necessary open a separate threat for it.

Thanks again!

Best Regards
Christian

Post Reply