annotate src/portaudio_20140130/build/msvc/readme.txt @ 49:3ab5a40c4e3b

Add Capnp and KJ builds for OSX
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 25 Oct 2016 14:48:23 +0100
parents 7ddb4fc30dac
children
rev   line source
Chris@39 1 Hello
Chris@39 2
Chris@39 3 This is a small list of steps in order to build portaudio
Chris@39 4 (Currently v19-devel) into a VS2005 DLL and lib file.
Chris@39 5 This DLL contains all 5 current Win32 PA APIS (MME/DS/ASIO/WASAPI/WDMKS)
Chris@39 6
Chris@39 7 1)Copy the source dirs that comes with the ASIO SDK inside src\hostapi\asio\ASIOSDK
Chris@39 8 so you should now have example:
Chris@39 9
Chris@39 10 portaudio19svn\src\hostapi\asio\ASIOSDK\common
Chris@39 11 portaudio19svn\src\hostapi\asio\ASIOSDK\host
Chris@39 12 portaudio19svn\src\hostapi\asio\ASIOSDK\host\sample
Chris@39 13 portaudio19svn\src\hostapi\asio\ASIOSDK\host\pc
Chris@39 14 portaudio19svn\src\hostapi\asio\ASIOSDK\host\mac (not needed)
Chris@39 15
Chris@39 16 You dont need "driver"
Chris@39 17
Chris@39 18 To build without ASIO (or another Host API) see the "Building without ASIO support" section below.
Chris@39 19
Chris@39 20 2)
Chris@39 21 *If you have Visual Studio 6.0*, please make sure you have it updated with the latest (and final)
Chris@39 22 microsoft libraries for it, namely:
Chris@39 23
Chris@39 24 Service pack 5:
Chris@39 25 Latest known URL:
Chris@39 26 http://msdn2.microsoft.com/en-us/vstudio/aa718363.aspx
Chris@39 27 Yes there EXISTS a service pack 6 , but the processor pack (below) isnt compatible with it.
Chris@39 28
Chris@39 29 Processor Pack(only works with above SP5)
Chris@39 30 Latest known URL:
Chris@39 31 http://msdn2.microsoft.com/en-us/vstudio/Aa718349.aspx
Chris@39 32 This isn't absolutely required for portaudio, but if you plan on using SSE intrinsics and similar things.
Chris@39 33 Up to you to decide upon Service pack 5 or 6 depending on your need for intrinsics.
Chris@39 34
Chris@39 35 Platform SDK (Feb 2003) :
Chris@39 36 Latest known URL:
Chris@39 37 http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm
Chris@39 38 (This will allow your code base to be x64 friendly, with correct defines
Chris@39 39 for LONG_PTR and such)
Chris@39 40 NOTE A) Yes you have to use IE activex scripts to install that - wont work in Firefox, you
Chris@39 41 may have to temporarily change tyour default browser(aint life unfair)
Chris@39 42 NOTE B) Dont forget to hit "Register PSDK Directories with Visual Studio".
Chris@39 43 you can make sure its right in VC6 if you open tools/options/directories/include files and you see SDK 2003 as the FIRST entry
Chris@39 44 (it must be the same for libs)
Chris@39 45
Chris@39 46 DirectX 9.0 SDK Update - (Summer 2003)
Chris@39 47 Latest known URL:
Chris@39 48 http://www.microsoft.com/downloads/details.aspx?familyid=9216652f-51e0-402e-b7b5-feb68d00f298&displaylang=en
Chris@39 49 Again register the links in VC6, and check inside vc6 if headers are in second place right after SDk 2003
Chris@39 50
Chris@39 51 *If you have 7.0(VC.NET/2001) or 7.1(VC.2003) *
Chris@39 52 then I suggest you open portaudio.dsp (and convert if needed)
Chris@39 53
Chris@39 54 *If you have Visual Studio 2005 * (or later), I suggest you open the portaudio.sln file
Chris@39 55 which contains 2 projects (portaudio & portaudio_static) each with 6 configurations: Win32/x64 in both Debug, Release and ReleaseMinDependency,
Chris@39 56 last of which removes dependency of all but basic OS system DLLs.
Chris@39 57
Chris@39 58 hit compile and hope for the best.
Chris@39 59
Chris@39 60 3)Now in any project, in which you require portaudio,
Chris@39 61 you can just link with portaudio_x86.lib, (or _x64) and of course include the
Chris@39 62 relevant headers
Chris@39 63 (portaudio.h, and/or pa_asio.h , pa_x86_plain_converters.h) See (*)
Chris@39 64
Chris@39 65 4) Your new exe should now use portaudio_xXX.dll.
Chris@39 66
Chris@39 67
Chris@39 68 Have fun!
Chris@39 69
Chris@39 70 (*): you may want to add/remove some DLL entry points.
Chris@39 71 Right now those 6 entries are _not_ from portaudio.h
Chris@39 72
Chris@39 73 (from portaudio.def)
Chris@39 74 (...)
Chris@39 75 PaAsio_GetAvailableLatencyValues @50
Chris@39 76 PaAsio_ShowControlPanel @51
Chris@39 77 PaUtil_InitializeX86PlainConverters @52
Chris@39 78 PaAsio_GetInputChannelName @53
Chris@39 79 PaAsio_GetOutputChannelName @54
Chris@39 80 PaUtil_SetLogPrintFunction @55
Chris@39 81
Chris@39 82
Chris@39 83 *** Building without ASIO support ***
Chris@39 84
Chris@39 85 To build PortAudio without ASIO support you need to:
Chris@39 86 A. Make sure your project doesn't try to build any ASIO SDK files.
Chris@39 87 If you're using one of the shipped projects, remove the ASIO related files
Chris@39 88 from the project.
Chris@39 89
Chris@39 90 B. Make sure your project doesn't try to build the PortAudio ASIO
Chris@39 91 implementation files:
Chris@39 92 src/hostapi/pa_asio.cpp
Chris@39 93 src/hostapi/iasiothiscallresolver.cpp
Chris@39 94 If you're using one of the shipped projects remove them from the project.
Chris@39 95
Chris@39 96 C. Set the PA_USE_ASIO preprocessor symbol to zero (i.e. PA_USE_ASIO=0) in the project properties.
Chris@39 97 In VS2005 this can be added under
Chris@39 98 Project Properties > Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions
Chris@39 99
Chris@39 100 Setting PA_USE_ASIO=0 stops src/os/win/pa_win_hostapis.c
Chris@39 101 from trying to initialize the PA ASIO implementation.
Chris@39 102
Chris@39 103 D. Remove PaAsio_* entry points from portaudio.def, or comment them out with ;
Chris@39 104
Chris@39 105
Chris@39 106 A similar procedure can be used to omit any of the other host APIs from the
Chris@39 107 build. The relevant preprocessor symbols used by pa_win_hostapis.c are:
Chris@39 108 PA_USE_WMME, PA_USE_DSOUND, PA_USE_ASIO, PA_USE_WASAPI and PA_USE_WDMKS
Chris@39 109
Chris@39 110 -----
Chris@39 111 David Viens, davidv@plogue.com
Chris@39 112 Robert Bielik, robert@xponaut.se