Skip to content

Commit

Permalink
Use vcpkg for providing the PortAudio dependency.
Browse files Browse the repository at this point in the history
This automates the PortAudio building process, making setup easier
for developers.
  • Loading branch information
dechamps committed Oct 27, 2018
1 parent f0ec6c3 commit 68c948c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
2 changes: 1 addition & 1 deletion FlexASIO/FlexASIO.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Midl />
<Link>
<ModuleDefinitionFile>dll.def</ModuleDefinitionFile>
<AdditionalDependencies>portaudio_$(PlatformShortName).lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>portaudio.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
Expand Down
32 changes: 22 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,27 @@ also help.

## DEVELOPER INFORMATION

FlexASIO currently uses the Microsoft Visual C++ 2017 toolchain,
though it should work just fine with any later version. You will need
the following dependencies:
- ASIO SDK (copy the ASIOSDK2.3.1 folder into the FlexASIO folder):
http://www.steinberg.net/en/company/developer.html
- PortAudio (add include and link directories):
http://www.portaudio.com/download.html

The installer can be built using Inno Setup:
http://www.jrsoftware.org/isdl.php You will need to put
FlexASIO is designed to use the Microsoft Visual C++ 2017 toolchain.

You will need to provide the PortAudio library dependency. The best way
is to use [vcpkg](https://github.com/Microsoft/vcpkg):

```
vcpkg install portaudio:x64-windows portaudio:x86-windows
```

Note that, at the time of writing, the portaudio port in current vcpkg
master has a couple of issues; make sure you have the following vcpkg
patches before running the above command:

- [Add pa_win_waveformat.h to public includes](https://github.com/Microsoft/vcpkg/pull/4582)
- [Copy PDB files](https://github.com/Microsoft/vcpkg/pull/4583)

You will also need to provide the ASIO SDK.
[Download](http://www.steinberg.net/en/company/developer.html) the SDK
and copy the ASIOSDK2.3.1 folder to the FlexASIO folder.

The installer can be built using
[Inno Setup](http://www.jrsoftware.org/isdl.php). You will need to put
the PortAudio DLL and the MSVC 2017 runtime DLLs in the redist/ folder
first.

0 comments on commit 68c948c

Please sign in to comment.