Portaudio in Linrad-04.01 and older.

(Sept 29 2014)
The file palir-xx.dll must be present when the configure script (configure.exe under Windows) is run. If it is missing, the resulting linrad.exe will run without the palir-xx.dll file but of course without access to soundcards through Portaudio. You may compile it from the Portaudio source code as described below, but you must then make sure that Windows will use the same .dll file at run time. That will happen automatically with the .dll file in the Linrad directory. Linrad versions up to linrad-03.21 use palir-01.dll which you can download from here palir01.dll.bz2 (457609 bytes) or here palir01.zip (485835 bytes) and extract palir-01.dll from the archive file

For Linrad-03.22 and later you may also use palir-02.dll. It is available here palir02.dll.bz2 (462419 bytes) or here palir02.zip (493856 bytes) and extract palir-02.dll from the archive file

palir-01.dll is from Portaudio snapshot Oct 19 2009 while palir-02.dll is from the stable release candidate March 02 2011.

How to generate palir-xx.dll from source code.

palir-xx.dll provides Hostapi's for MME, DirectSound, WDM-KS, WASAPI and ASIO.

The installation steps are:

1. Install MinGW/GCC 3.4.5 by downloading mingw516nasmusb.zip (23660852 bytes)
Unzip it in C:\ to get a C:\mingw directory. (DO NOT use older mingw versions or the compilation will fail.)

2. Download the latest portaudio snapshot (pa_snapshot.tgz) from http://portaudio.com/download.html
Unpack it into C:\ to get a C:\portaudio directory.
Files with extention .tgz (short for .tar.gz) may have to be unpacked in two steps.

3. Go to: Go to: http://www.steinberg.net/en/company/developers.html Register and agree to their license agreement. Then you can login as a 3rd party developer and download the asiosdk2.2.zip file.
Unzip it and copy the ASIOSDK2 folder with its subdirectories to C:\portaudio\src\hostapi\asio\ASIOSDK2

4. Download portaudio_for_linrad.zip (123431 bytes)
Unzip it while preserving the path information to get a folder portaudio_for_linrad with sub-folders in it.
-Copy the folder dx8sdk from portaudio_for_linrad to the C:\portaudio directory.
-Copy the mingw-include folder from portaudio_for_linrad to C:\portaudio\src\hostapi\wdmks\mingw-include
-Copy the files
   Makefile
   make.bat
   clear.bat
from portaudio_for_linrad to the C:\portaudio directory.

5. Deprecated (recent Portaudio versions include WDMKS by default.) Activate WDMKS by editing the file C:\portaudio\src\os\win\pa_win_hostapis.c
Use your favourite editor to remove the /* and */ that surround these statements:
#ifndef PA_NO_WDMKS
       PaWinWdm_Initialize,
#endif


6. Open now a command window (DOS prompt) in Windows.
From the DOS prompt, cd to the C:\portaudio directory and enter the command
make.bat

In case there are no fatal errors you would get the palir-01.dll file in the portaudio directory. To generate palir-02.dll, use this version of Makefile (7410 bytes) Please note that a palir-xx.dll that you generate from source code has to be used at run time as well as at compile time.
The make.bat command will also generate three portaudio test programs in the portaudio directory:
pa_devs.exe
paqa_devs.exe
patest_record.exe

Notes:
5.1 If you want to keep ALL the output of the compilation proces (including error messages) you can route the output to a text file with the following command:
make.bat > make_output.txt 2>&1

5.2 The palir-xx.dll file can be generated with a debug option.
This debug option will generate debugging information in the DOS box from which you started linrad.
To activate this debug option you have to modify line 3 in Makefile by adding -DPA_ENABLE_DEBUG_OUTPUT= at the end of the line as follows:
CF1= -c -DWIN32 -D_WIN32 -DWINDOWS -DKSAUDIO_SPEAKER_DIRECTOUT=0 -DMETHOD_NEITHER=3 -DFILE_ANY_ACCESS=0 -DWINVER=0x0501  -DPA_ENABLE_DEBUG_OUTPUT=

7. If the test programs run fine, copy the palir-xx.dll file into the linrad directory and recompile Linrad. You have to run configure in between in case you did not copy palir-xx.dll to replace an older version with the same name.