comparison org/add-new-device.org @ 33:3caceef436ea tip

formatting for web
author Robert McIntyre <rlm@mit.edu>
date Sat, 11 Feb 2012 12:25:55 -0700
parents f9476ff7637e
children
comparison
equal deleted inserted replaced
32:b8bc24918d63 33:3caceef436ea
1 #+title: all the steps to add a device to open-al 1 #+title: Steps to add a new Device to Open-AL
2 #+author: Robert McIntyre 2 #+author: Robert McIntyre
3 #+email: rlm@mit.edu 3 #+email: rlm@mit.edu
4 #+description: how to add a new device to open-al 4 #+description: how to add a new device to open-al
5 #+SETUPFILE: ../../aurellem/org/setup.org 5 #+SETUPFILE: ../../aurellem/org/setup.org
6 #+INCLUDE: ../../aurellem/org/level-0.org 6 #+INCLUDE: ../../aurellem/org/level-0.org
7
8
9 * How to add a new backend device
10 7
11 * In Alc/backends/<your-device>.c 8 * In Alc/backends/<your-device>.c
12 9
13 #+begin_src C 10 #+begin_src C
14 static const ALCchar <your-device>_device[] = <your-device-name>; 11 static const ALCchar <your-device>_device[] = <your-device-name>;
15 12
16 ALCboolean alc_<your-device>_init(BackendFuncs *func_list) 13 ALCboolean alc_<your-device>_init(BackendFuncs *func_list)
17 void alc_<your-device>_deinit(void) 14 void alc_<your-device>_deinit(void)
18 15
19 static ALCboolean <your-device>_open_playback(ALCdevice *device, const ALCchar *deviceName) 16 static ALCboolean <your-device>_open_playback
17 (ALCdevice *device,const ALCchar *deviceName)
20 static void <your-device>_close_playback(ALCdevice *device) 18 static void <your-device>_close_playback(ALCdevice *device)
21 static ALCboolean <your-device>_reset_playback(ALCdevice *device) 19 static ALCboolean <your-device>_reset_playback(ALCdevice *device)
22 static void <your-device>_stop_playback(ALCdevice *device) 20 static void <your-device>_stop_playback(ALCdevice *device)
21
23 #+end_src 22 #+end_src
24 23
25 #+begin_src C 24 #+begin_src C
26 void alc_<your-device>_probe(enum DevProbe type) 25 void alc_<your-device>_probe(enum DevProbe type)
27 { 26 {
88 Alc/mixer.c 87 Alc/mixer.c
89 Alc/panning.c 88 Alc/panning.c
90 # Default backends, always available 89 # Default backends, always available
91 Alc/backends/loopback.c 90 Alc/backends/loopback.c
92 Alc/backends/null.c 91 Alc/backends/null.c
93 # : add <your-device> device 92 # : add <your-device> herex
94 Alc/backends/<your-device>.c 93 Alc/backends/<your-device>.c
95 ) 94 )
96 #+end_src 95 #+end_src
97 96
98 97