This file is indexed.

/usr/share/doc/portaudio19-doc/doc/html/compile_windows_asio_msvc.html is in portaudio19-doc 19+svn20140130-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>PortAudio: Building Portaudio for Windows with ASIO support using MSVC</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">PortAudio
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Building Portaudio for Windows with ASIO support using MSVC </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><h1><a class="anchor" id="comp_win_asiomsvc1"></a>
Portaudio Windows ASIO with MSVC</h1>
<p>This tutorial describes how to build PortAudio with ASIO support using MSVC <em>from scratch</em>, without an existing Visual Studio project. For instructions for building PortAudio (including ASIO support) using the bundled Visual Studio project file see the compiling instructions for <a class="el" href="compile_windows.html">Building Portaudio for Windows using Microsoft Visual Studio</a>.</p>
<p>ASIO is a low latency audio API from Steinberg. To compile an ASIO application, you must first download the ASIO SDK from Steinberg. You also need to obtain ASIO drivers for your audio device. Download the ASIO SDK from Steinberg at <a href="http://www.steinberg.net/en/company/developer.html">http://www.steinberg.net/en/company/developer.html</a>. The SDK is free but you will need to set up a developer account with Steinberg.</p>
<p>This tutorial assumes that you have 3 directories set up at the same level (side by side), one containing PortAudio, one containing the ASIO SDK and one containing your Visual Studio project:</p>
<div class="fragment"><div class="line">/ASIOSDK2 </div>
<div class="line">/portaudio</div>
<div class="line">/DirContainingYourVisualStudioProject</div>
</div><!-- fragment --><p>First, make sure that the Steinberg SDK and the portaudio files are "side by side" in the same directory.</p>
<p>Open Microsoft Visual C++ and create a new blank Console exe Project/Workspace in that same directory.</p>
<p>For example, the paths for all three groups might read like this:</p>
<div class="fragment"><div class="line">C:\Program Files\Microsoft Visual Studio\VC98\My Projects\ASIOSDK2</div>
<div class="line">C:\Program Files\Microsoft Visual Studio\VC98\My Projects\portaudio</div>
<div class="line">C:\Program Files\Microsoft Visual Studio\VC98\My Projects\Sawtooth</div>
</div><!-- fragment --><p>Next, add the following Steinberg ASIO SDK files to the project Source Files:</p>
<div class="fragment"><div class="line">asio.cpp                        (ASIOSDK2\common)</div>
<div class="line">asiodrivers.cpp                 (ASIOSDK2\host)</div>
<div class="line">asiolist.cpp                    (ASIOSDK2\host\pc)</div>
</div><!-- fragment --><p>Then, add the following PortAudio files to the project Source Files:</p>
<div class="fragment"><div class="line">pa_asio.cpp                     (portaudio\src\hostapi\asio)</div>
<div class="line">pa_allocation.c                 (portaudio\src\common)</div>
<div class="line">pa_converters.c                 (portaudio\src\common)</div>
<div class="line">pa_cpuload.c                    (portaudio\src\common)</div>
<div class="line">pa_dither.c                     (portaudio\src\common)</div>
<div class="line">pa_front.c                      (portaudio\src\common)</div>
<div class="line">pa_process.c                    (portaudio\src\common)</div>
<div class="line">pa_ringbuffer.c                 (portaudio\src\common)</div>
<div class="line">pa_stream.c                     (portaudio\src\common)</div>
<div class="line">pa_trace.c                      (portaudio\src\common)</div>
<div class="line">pa_win_hostapis.c               (portaudio\src\os\win)</div>
<div class="line">pa_win_util.c                   (portaudio\src\os\win)</div>
<div class="line">pa_win_waveformat.c             (portaudio\src\os\win)</div>
<div class="line">pa_x86_plain_converters.c       (portaudio\src\os\win)</div>
<div class="line">patest_saw.c                    (portaudio\test)  (Or another file containing main() </div>
<div class="line">                                                   for the console exe to be built.)</div>
</div><!-- fragment --><p>Although not strictly necessary, you may also want to add the following files to the project Header Files:</p>
<div class="fragment"><div class="line">portaudio.h                     (portaudio\include)</div>
<div class="line">pa_asio.h                       (portaudio\include)</div>
</div><!-- fragment --><p>These header files define the interfaces to the PortAudio API.</p>
<p>Next, go to Project Settings &gt; All Configurations &gt; C/C++ &gt; Preprocessor &gt; Preprocessor definitions and add PA_USE_ASIO=1 to any entries that might be there.</p>
<p>eg: WIN32;_CONSOLE;_MBCS changes to WIN32;_CONSOLE,_MBCS;PA_USE_ASIO=1</p>
<p>Then, on the same Project Settings tab, go down to Additional include directories: and enter the following relative include paths.</p>
<div class="fragment"><div class="line">..\portaudio\include,..\portaudio\src\common,..\asiosdk2\common,..\asiosdk2\host,..\asiosdk2\host\pc</div>
</div><!-- fragment --><p>You'll need to make sure the relative paths are correct for the particular directory layout you're using. The above should work fine if you use the side-by-side layout we recommended earlier.</p>
<p>You should now be able to build any of the test executables in the portaudio</p>
<p>&mdash; Chris Share, Tom McCandless, Ross Bencina</p>
<p>[wiki:UsingThePortAudioSvnRepository SVN instructions] Back to the Tutorial: <a class="el" href="tutorial_start.html">PortAudio Tutorials</a> </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Feb 25 2014 21:08:45 for PortAudio by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>