# HG changeset patch # User Robert McIntyre # Date 1328988355 25200 # Node ID 3caceef436eabde8f00c5119c5f80fc92819c796 # Parent b8bc24918d63638f8a8f83eb58cd997f7cc787f7 formatting for web diff -r b8bc24918d63 -r 3caceef436ea Alc/backends/send.c --- a/Alc/backends/send.c Sat Feb 04 01:43:33 2012 -0700 +++ b/Alc/backends/send.c Sat Feb 11 12:25:55 2012 -0700 @@ -233,7 +233,6 @@ addContext(Device, masterContext); } - static void renderData(ALCdevice *Device, int samples){ if(!Device->Connected){return;} send_data *data = (send_data*)Device->ExtraData; diff -r b8bc24918d63 -r 3caceef436ea html/add-new-device.html --- a/html/add-new-device.html Sat Feb 04 01:43:33 2012 -0700 +++ b/html/add-new-device.html Sat Feb 11 12:25:55 2012 -0700 @@ -1,13 +1,13 @@ - + -all the steps to add a device to open-al +Steps to add a new Device to Open-AL + - + @@ -44,6 +44,12 @@ dt { font-weight: bold; } div.figure { padding: 0.5em; } div.figure p { text-align: center; } + div.inlinetask { + padding:10px; + border:2px solid gray; + margin:10px; + background: #ffffcc; + } textarea { overflow-x: auto; } .linenr { font-size:smaller } .code-highlighted {background-color:#ffff00;} @@ -81,8 +87,9 @@ +
- +

Steps to add a new Device to Open-AL

@@ -101,7 +108,6 @@
-

all the steps to add a device to open-al

Written by Robert McIntyre
@@ -114,30 +120,20 @@

Table of Contents

-

1 How to add a new backend device

+

1 In Alc/backends/<your-device>.c

-
- -
- -
-

2 In Alc/backends/<your-device>.c

-
- - @@ -145,17 +141,17 @@ ALCboolean alc_<your-device>_init(BackendFuncs *func_list) void alc_<your-device>_deinit(void) - -static ALCboolean <your-device>_open_playback(ALCdevice *device, const ALCchar *deviceName) + +static ALCboolean <your-device>_open_playback + (ALCdevice *device,const ALCchar *deviceName) static void <your-device>_close_playback(ALCdevice *device) static ALCboolean <your-device>_reset_playback(ALCdevice *device) static void <your-device>_stop_playback(ALCdevice *device) + - -
void alc_<your-device>_probe(enum DevProbe type)
 {
     switch(type)
@@ -174,8 +170,6 @@
 
 
 
-
-
 
static const BackendFuncs <your-device>_funcs = {
     <your-device>_open_playback,
     <your-device>_close_playback,
@@ -192,15 +186,13 @@
 
 
 
-
-
 
-
-

3 In OpenAL32/Include/alMain.h :

-
+
+

2 In OpenAL32/Include/alMain.h :

+
@@ -213,6 +205,21 @@ +
+ +
+ +
+

3 In Alc/ALc.c :

+
+ + + + +
     { "<your-device>", alc_<your-device>_init, 
+         alc_<your-device>_deinit, alc_<your-device>_probe, EmptyFuncs },
+
+
@@ -220,31 +227,12 @@
-

4 In Alc/ALc.c :

+

4 In CMakeLists.txt

-
     { "<your-device>", alc_<your-device>_init, 
-         alc_<your-device>_deinit, alc_<your-device>_probe, EmptyFuncs },
-
-
- - - - -
- -
- -
-

5 In CMakeLists.txt

-
- - - -
SET(ALC_OBJS  Alc/ALc.c
               Alc/ALu.c
               Alc/alcConfig.c
@@ -262,22 +250,20 @@
               # Default backends, always available
               Alc/backends/loopback.c
               Alc/backends/null.c
-              # : add <your-device> device
+              # : add <your-device> herex
               Alc/backends/<your-device>.c
 )
 
- -
-
-

6 In ~/.alsoftrc

-
+
+

5 In ~/.alsoftrc

+
@@ -286,16 +272,16 @@
drivers = <your-device>
 
+
+
+
+
+

Date: 2012-02-11 04:43:24 MST

+

Author: Robert McIntyre

+

Org version 7.7 with Emacs version 23

+Validate XHTML 1.0
-
-
-

Date: 2011-10-20 15:48:47 MST

-

Author: Robert McIntyre

-

Org version 7.6 with Emacs version 23

-Validate XHTML 1.0 -
-
diff -r b8bc24918d63 -r 3caceef436ea org/add-new-device.org --- a/org/add-new-device.org Sat Feb 04 01:43:33 2012 -0700 +++ b/org/add-new-device.org Sat Feb 11 12:25:55 2012 -0700 @@ -1,13 +1,10 @@ -#+title: all the steps to add a device to open-al +#+title: Steps to add a new Device to Open-AL #+author: Robert McIntyre #+email: rlm@mit.edu #+description: how to add a new device to open-al #+SETUPFILE: ../../aurellem/org/setup.org #+INCLUDE: ../../aurellem/org/level-0.org - -* How to add a new backend device - * In Alc/backends/.c #+begin_src C @@ -15,11 +12,13 @@ ALCboolean alc__init(BackendFuncs *func_list) void alc__deinit(void) - -static ALCboolean _open_playback(ALCdevice *device, const ALCchar *deviceName) + +static ALCboolean _open_playback + (ALCdevice *device,const ALCchar *deviceName) static void _close_playback(ALCdevice *device) static ALCboolean _reset_playback(ALCdevice *device) static void _stop_playback(ALCdevice *device) + #+end_src #+begin_src C @@ -90,7 +89,7 @@ # Default backends, always available Alc/backends/loopback.c Alc/backends/null.c - # : add device + # : add herex Alc/backends/.c ) #+end_src