Mercurial > audio-send
diff org/ear.org @ 21:0ee04505a37f
fixed send.c tangling
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 03 Nov 2011 15:07:36 -0700 |
parents | e8ae40c9848c |
children | 616215c81d23 |
line wrap: on
line diff
1.1 --- a/org/ear.org Thu Nov 03 15:02:18 2011 -0700 1.2 +++ b/org/ear.org Thu Nov 03 15:07:36 2011 -0700 1.3 @@ -150,6 +150,7 @@ 1.4 only one context at a time. 1.5 1.6 ** Necessary State 1.7 +#+srcname: send-state 1.8 #+begin_src C 1.9 //////////////////// State 1.10 1.11 @@ -177,7 +178,7 @@ 1.12 of the actual device state whenever a context is rendered. 1.13 1.14 ** Synchronization Macros 1.15 - 1.16 +#+srcname: sync-macros 1.17 #+begin_src C 1.18 //////////////////// Context Creation / Synchronization 1.19 1.20 @@ -220,6 +221,7 @@ 1.21 synchronization code involving these similar low-level =OpenAL= functions. 1.22 1.23 ** Source Synchronization 1.24 +#+srcname: sync-sources 1.25 #+begin_src C 1.26 void syncSources(ALsource *masterSource, ALsource *slaveSource, 1.27 ALCcontext *masterCtx, ALCcontext *slaveCtx){ 1.28 @@ -292,6 +294,7 @@ 1.29 good description of =OpenAL='s internals. 1.30 1.31 ** Context Synchronization 1.32 +#+srcname: sync-contexts 1.33 #+begin_src C 1.34 void syncContexts(ALCcontext *master, ALCcontext *slave){ 1.35 /* If there aren't sufficient sources in slave to mirror 1.36 @@ -329,6 +332,7 @@ 1.37 does not have the same number of sources as the master context. 1.38 1.39 ** Context Creation 1.40 +#+srcname: context-creation 1.41 #+begin_src C 1.42 static void addContext(ALCdevice *Device, ALCcontext *context){ 1.43 send_data *data = (send_data*)Device->ExtraData; 1.44 @@ -357,6 +361,7 @@ 1.45 eventually go. 1.46 1.47 ** Context Switching 1.48 +#+srcname: context-switching 1.49 #+begin_src C 1.50 //////////////////// Context Switching 1.51 1.52 @@ -402,6 +407,7 @@ 1.53 context separate from all the others. 1.54 1.55 ** Main Device Loop 1.56 +#+srcname: main-loop 1.57 #+begin_src C 1.58 //////////////////// Main Device Loop 1.59 1.60 @@ -458,7 +464,7 @@ 1.61 by the way LWJGL interfaces with =OpenAL=. 1.62 1.63 *** step 1.64 - 1.65 +#+srcname: jni-step 1.66 #+begin_src C 1.67 //////////////////// JNI Methods 1.68 1.69 @@ -485,6 +491,7 @@ 1.70 1.71 1.72 *** getSamples 1.73 +#+srcname: jni-get-samples 1.74 #+begin_src C 1.75 /* 1.76 * Class: com_aurellem_send_AudioSend 1.77 @@ -515,7 +522,7 @@ 1.78 necessary to change the properties of any listener other than the 1.79 master one, since only the listener of the current active context is 1.80 affected by the normal =OpenAL= listener calls. 1.81 - 1.82 +#+srcname: listener-manage 1.83 #+begin_src C 1.84 /* 1.85 * Class: com_aurellem_send_AudioSend 1.86 @@ -582,7 +589,7 @@ 1.87 =javax.sound.sampled.AudioFormat= object from data in the Device. This 1.88 way, there is no ambiguity about what the bits created by =step= and 1.89 returned by =getSamples= mean. 1.90 - 1.91 +#+srcname: jni-init 1.92 #+begin_src C 1.93 /* 1.94 * Class: com_aurellem_send_AudioSend 1.95 @@ -635,7 +642,7 @@ 1.96 *** Boring Device management stuff 1.97 This code is more-or-less copied verbatim from the other =OpenAL= 1.98 backends. It's the basis for =OpenAL='s primitive object system. 1.99 - 1.100 +#+srcname: device-init 1.101 #+begin_src C 1.102 //////////////////// Device Initialization / Management 1.103 1.104 @@ -830,7 +837,19 @@ 1.105 1.106 1.107 #+begin_src C :tangle ../Alc/backends/send.c 1.108 -<<send>> 1.109 +<<send-header>> 1.110 +<<send-state>> 1.111 +<<sync-macros>> 1.112 +<<sync-sources>> 1.113 +<<sync-contexts>> 1.114 +<<context-creation>> 1.115 +<<context-switching>> 1.116 +<<main-loop>> 1.117 +<<jni-step>> 1.118 +<<jni-get-samples>> 1.119 +<<listener-manage>> 1.120 +<<jni-init>> 1.121 +<<device-init>> 1.122 #+end_src 1.123 1.124