diff html/add-new-device.html @ 33:3caceef436ea tip

formatting for web
author Robert McIntyre <rlm@mit.edu>
date Sat, 11 Feb 2012 12:25:55 -0700
parents f9476ff7637e
children
line wrap: on
line diff
     1.1 --- a/html/add-new-device.html	Sat Feb 04 01:43:33 2012 -0700
     1.2 +++ b/html/add-new-device.html	Sat Feb 11 12:25:55 2012 -0700
     1.3 @@ -1,13 +1,13 @@
     1.4  <?xml version="1.0" encoding="utf-8"?>
     1.5  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     1.6                 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     1.7 -<html xmlns="http://www.w3.org/1999/xhtml"
     1.8 -lang="en" xml:lang="en">
     1.9 +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    1.10  <head>
    1.11 -<title>all the steps to add a device to open-al</title>
    1.12 +<title>Steps to add a new Device to Open-AL</title>
    1.13  <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    1.14 +<meta name="title" content="Steps to add a new Device to Open-AL"/>
    1.15  <meta name="generator" content="Org-mode"/>
    1.16 -<meta name="generated" content="2011-10-20 15:48:47 MST"/>
    1.17 +<meta name="generated" content="2012-02-11 04:43:24 MST"/>
    1.18  <meta name="author" content="Robert McIntyre"/>
    1.19  <meta name="description" content="how to add a new device to open-al"/>
    1.20  <meta name="keywords" content=""/>
    1.21 @@ -44,6 +44,12 @@
    1.22    dt { font-weight: bold; }
    1.23    div.figure { padding: 0.5em; }
    1.24    div.figure p { text-align: center; }
    1.25 +  div.inlinetask {
    1.26 +    padding:10px;
    1.27 +    border:2px solid gray;
    1.28 +    margin:10px;
    1.29 +    background: #ffffcc;
    1.30 +  }
    1.31    textarea { overflow-x: auto; }
    1.32    .linenr { font-size:smaller }
    1.33    .code-highlighted {background-color:#ffff00;}
    1.34 @@ -81,8 +87,9 @@
    1.35  </head>
    1.36  <body>
    1.37  
    1.38 +
    1.39  <div id="content">
    1.40 -
    1.41 +<h1 class="title">Steps to add a new Device to Open-AL</h1>
    1.42  
    1.43  
    1.44  <div class="header">
    1.45 @@ -101,7 +108,6 @@
    1.46    </ul>
    1.47  </div>
    1.48  
    1.49 -<h1 class="title">all the steps to add a device to open-al</h1>
    1.50  <div class="author">Written by <author>Robert McIntyre</author></div>
    1.51  
    1.52  
    1.53 @@ -114,30 +120,20 @@
    1.54  <h2>Table of Contents</h2>
    1.55  <div id="text-table-of-contents">
    1.56  <ul>
    1.57 -<li><a href="#sec-1">1 How to add a new backend device </a></li>
    1.58 -<li><a href="#sec-2">2 In Alc/backends/&lt;your-device&gt;.c </a></li>
    1.59 -<li><a href="#sec-3">3 In OpenAL32/Include/alMain.h : </a></li>
    1.60 -<li><a href="#sec-4">4 In Alc/ALc.c : </a></li>
    1.61 -<li><a href="#sec-5">5 In CMakeLists.txt </a></li>
    1.62 -<li><a href="#sec-6">6 In ~/.alsoftrc </a></li>
    1.63 +<li><a href="#sec-1">1 In Alc/backends/&lt;your-device&gt;.c</a></li>
    1.64 +<li><a href="#sec-2">2 In OpenAL32/Include/alMain.h :</a></li>
    1.65 +<li><a href="#sec-3">3 In Alc/ALc.c :</a></li>
    1.66 +<li><a href="#sec-4">4 In CMakeLists.txt</a></li>
    1.67 +<li><a href="#sec-5">5 In ~/.alsoftrc</a></li>
    1.68  </ul>
    1.69  </div>
    1.70  </div>
    1.71  
    1.72  <div id="outline-container-1" class="outline-2">
    1.73 -<h2 id="sec-1"><span class="section-number-2">1</span> How to add a new backend device </h2>
    1.74 +<h2 id="sec-1"><span class="section-number-2">1</span> In Alc/backends/&lt;your-device&gt;.c</h2>
    1.75  <div class="outline-text-2" id="text-1">
    1.76  
    1.77  
    1.78 -</div>
    1.79 -
    1.80 -</div>
    1.81 -
    1.82 -<div id="outline-container-2" class="outline-2">
    1.83 -<h2 id="sec-2"><span class="section-number-2">2</span> In Alc/backends/&lt;your-device&gt;.c </h2>
    1.84 -<div class="outline-text-2" id="text-2">
    1.85 -
    1.86 -
    1.87  
    1.88  
    1.89  
    1.90 @@ -145,17 +141,17 @@
    1.91  
    1.92  <span style="color: #dfdfbf; font-weight: bold;">ALCboolean</span> <span style="color: #f0dfaf;">alc_</span>&lt;your-device&gt;_init(BackendFuncs *func_list)
    1.93  <span style="color: #dfdfbf; font-weight: bold;">void</span> <span style="color: #f0dfaf;">alc_</span>&lt;your-device&gt;_deinit(<span style="color: #dfdfbf; font-weight: bold;">void</span>)
    1.94 -
    1.95 -<span style="color: #f0dfaf; font-weight: bold;">static</span> <span style="color: #dfdfbf; font-weight: bold;">ALCboolean</span> &lt;your-device&gt;_open_playback(ALCdevice *device, <span style="color: #f0dfaf; font-weight: bold;">const</span> <span style="color: #dfdfbf; font-weight: bold;">ALCchar</span> *<span style="color: #f0dfaf;">deviceName</span>)
    1.96 +  
    1.97 +<span style="color: #f0dfaf; font-weight: bold;">static</span> <span style="color: #dfdfbf; font-weight: bold;">ALCboolean</span> &lt;your-device&gt;_open_playback
    1.98 +  (ALCdevice *device,<span style="color: #f0dfaf; font-weight: bold;">const</span> <span style="color: #dfdfbf; font-weight: bold;">ALCchar</span> *<span style="color: #f0dfaf;">deviceName</span>)
    1.99  <span style="color: #f0dfaf; font-weight: bold;">static</span> <span style="color: #dfdfbf; font-weight: bold;">void</span> &lt;your-device&gt;_close_playback(ALCdevice *device)
   1.100  <span style="color: #f0dfaf; font-weight: bold;">static</span> <span style="color: #dfdfbf; font-weight: bold;">ALCboolean</span> &lt;your-device&gt;_reset_playback(ALCdevice *device)
   1.101  <span style="color: #f0dfaf; font-weight: bold;">static</span> <span style="color: #dfdfbf; font-weight: bold;">void</span> &lt;your-device&gt;_stop_playback(ALCdevice *device)
   1.102 +
   1.103  </pre>
   1.104  
   1.105  
   1.106  
   1.107 -
   1.108 -
   1.109  <pre class="src src-C"><span style="color: #dfdfbf; font-weight: bold;">void</span> <span style="color: #f0dfaf;">alc_</span>&lt;your-device&gt;_probe(<span style="color: #f0dfaf; font-weight: bold;">enum</span> <span style="color: #dfdfbf; font-weight: bold;">DevProbe</span> <span style="color: #f0dfaf;">type</span>)
   1.110  {
   1.111      <span style="color: #f0dfaf; font-weight: bold;">switch</span>(type)
   1.112 @@ -174,8 +170,6 @@
   1.113  
   1.114  
   1.115  
   1.116 -
   1.117 -
   1.118  <pre class="src src-C"><span style="color: #f0dfaf; font-weight: bold;">static</span> <span style="color: #f0dfaf; font-weight: bold;">const</span> <span style="color: #dfdfbf; font-weight: bold;">BackendFuncs</span> &lt;your-device&gt;_funcs = {
   1.119      &lt;your-device&gt;_open_playback,
   1.120      &lt;your-device&gt;_close_playback,
   1.121 @@ -192,15 +186,13 @@
   1.122  
   1.123  
   1.124  
   1.125 -
   1.126 -
   1.127  </div>
   1.128  
   1.129  </div>
   1.130  
   1.131 -<div id="outline-container-3" class="outline-2">
   1.132 -<h2 id="sec-3"><span class="section-number-2">3</span> In OpenAL32/Include/alMain.h : </h2>
   1.133 -<div class="outline-text-2" id="text-3">
   1.134 +<div id="outline-container-2" class="outline-2">
   1.135 +<h2 id="sec-2"><span class="section-number-2">2</span> In OpenAL32/Include/alMain.h :</h2>
   1.136 +<div class="outline-text-2" id="text-2">
   1.137  
   1.138  
   1.139  
   1.140 @@ -213,6 +205,21 @@
   1.141  </pre>
   1.142  
   1.143  
   1.144 +</div>
   1.145 +
   1.146 +</div>
   1.147 +
   1.148 +<div id="outline-container-3" class="outline-2">
   1.149 +<h2 id="sec-3"><span class="section-number-2">3</span> In Alc/ALc.c :</h2>
   1.150 +<div class="outline-text-2" id="text-3">
   1.151 +
   1.152 +
   1.153 +
   1.154 +
   1.155 +<pre class="src src-C">     { <span style="color: #cc9393;">"&lt;your-device&gt;"</span>, alc_&lt;your-device&gt;_init, 
   1.156 +         alc_&lt;your-device&gt;_deinit, alc_&lt;your-device&gt;_probe, EmptyFuncs },
   1.157 +
   1.158 +</pre>
   1.159  
   1.160  
   1.161  </div>
   1.162 @@ -220,31 +227,12 @@
   1.163  </div>
   1.164  
   1.165  <div id="outline-container-4" class="outline-2">
   1.166 -<h2 id="sec-4"><span class="section-number-2">4</span> In Alc/ALc.c : </h2>
   1.167 +<h2 id="sec-4"><span class="section-number-2">4</span> In CMakeLists.txt</h2>
   1.168  <div class="outline-text-2" id="text-4">
   1.169  
   1.170  
   1.171  
   1.172  
   1.173 -<pre class="src src-C">     { <span style="color: #cc9393;">"&lt;your-device&gt;"</span>, alc_&lt;your-device&gt;_init, 
   1.174 -         alc_&lt;your-device&gt;_deinit, alc_&lt;your-device&gt;_probe, EmptyFuncs },
   1.175 -
   1.176 -</pre>
   1.177 -
   1.178 -
   1.179 -
   1.180 -
   1.181 -</div>
   1.182 -
   1.183 -</div>
   1.184 -
   1.185 -<div id="outline-container-5" class="outline-2">
   1.186 -<h2 id="sec-5"><span class="section-number-2">5</span> In CMakeLists.txt </h2>
   1.187 -<div class="outline-text-2" id="text-5">
   1.188 -
   1.189 -
   1.190 -
   1.191 -
   1.192  <pre class="src src-cmake">SET(ALC_OBJS  Alc/ALc.c
   1.193                Alc/ALu.c
   1.194                Alc/alcConfig.c
   1.195 @@ -262,22 +250,20 @@
   1.196                # Default backends, always available
   1.197                Alc/backends/loopback.c
   1.198                Alc/backends/null.c
   1.199 -              # : add &lt;your-device&gt; device
   1.200 +              # : add &lt;your-device&gt; herex
   1.201                Alc/backends/&lt;your-device&gt;.c
   1.202  )
   1.203  </pre>
   1.204  
   1.205  
   1.206  
   1.207 -
   1.208 -
   1.209  </div>
   1.210  
   1.211  </div>
   1.212  
   1.213 -<div id="outline-container-6" class="outline-2">
   1.214 -<h2 id="sec-6"><span class="section-number-2">6</span> In ~/.alsoftrc </h2>
   1.215 -<div class="outline-text-2" id="text-6">
   1.216 +<div id="outline-container-5" class="outline-2">
   1.217 +<h2 id="sec-5"><span class="section-number-2">5</span> In ~/.alsoftrc</h2>
   1.218 +<div class="outline-text-2" id="text-5">
   1.219  
   1.220  
   1.221  
   1.222 @@ -286,16 +272,16 @@
   1.223  <pre class="src src-conf"><span style="color: #f0dfaf;">drivers</span> = &lt;your-device&gt;
   1.224  </pre>
   1.225  
   1.226 +</div>
   1.227 +</div>
   1.228 +</div>
   1.229  
   1.230 +<div id="postamble">
   1.231 +<p class="date">Date: 2012-02-11 04:43:24 MST</p>
   1.232 +<p class="author">Author: Robert McIntyre</p>
   1.233 +<p class="creator">Org version 7.7 with Emacs version 23</p>
   1.234 +<a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
   1.235  
   1.236  </div>
   1.237 -</div>
   1.238 -<div id="postamble">
   1.239 -<p class="date">Date: 2011-10-20 15:48:47 MST</p>
   1.240 -<p class="author">Author: Robert McIntyre</p>
   1.241 -<p class="creator">Org version 7.6 with Emacs version 23</p>
   1.242 -<a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
   1.243 -</div>
   1.244 -</div>
   1.245  </body>
   1.246  </html>