# HG changeset patch # User Robert McIntyre # Date 1320358056 25200 # Node ID 0ee04505a37fc8da90d1b68d17641a04700c0ca7 # Parent e8ae40c9848cbe1f03bd1eef4a410ff3daba361a fixed send.c tangling diff -r e8ae40c9848c -r 0ee04505a37f org/ear.org --- a/org/ear.org Thu Nov 03 15:02:18 2011 -0700 +++ b/org/ear.org Thu Nov 03 15:07:36 2011 -0700 @@ -150,6 +150,7 @@ only one context at a time. ** Necessary State +#+srcname: send-state #+begin_src C //////////////////// State @@ -177,7 +178,7 @@ of the actual device state whenever a context is rendered. ** Synchronization Macros - +#+srcname: sync-macros #+begin_src C //////////////////// Context Creation / Synchronization @@ -220,6 +221,7 @@ synchronization code involving these similar low-level =OpenAL= functions. ** Source Synchronization +#+srcname: sync-sources #+begin_src C void syncSources(ALsource *masterSource, ALsource *slaveSource, ALCcontext *masterCtx, ALCcontext *slaveCtx){ @@ -292,6 +294,7 @@ good description of =OpenAL='s internals. ** Context Synchronization +#+srcname: sync-contexts #+begin_src C void syncContexts(ALCcontext *master, ALCcontext *slave){ /* If there aren't sufficient sources in slave to mirror @@ -329,6 +332,7 @@ does not have the same number of sources as the master context. ** Context Creation +#+srcname: context-creation #+begin_src C static void addContext(ALCdevice *Device, ALCcontext *context){ send_data *data = (send_data*)Device->ExtraData; @@ -357,6 +361,7 @@ eventually go. ** Context Switching +#+srcname: context-switching #+begin_src C //////////////////// Context Switching @@ -402,6 +407,7 @@ context separate from all the others. ** Main Device Loop +#+srcname: main-loop #+begin_src C //////////////////// Main Device Loop @@ -458,7 +464,7 @@ by the way LWJGL interfaces with =OpenAL=. *** step - +#+srcname: jni-step #+begin_src C //////////////////// JNI Methods @@ -485,6 +491,7 @@ *** getSamples +#+srcname: jni-get-samples #+begin_src C /* * Class: com_aurellem_send_AudioSend @@ -515,7 +522,7 @@ necessary to change the properties of any listener other than the master one, since only the listener of the current active context is affected by the normal =OpenAL= listener calls. - +#+srcname: listener-manage #+begin_src C /* * Class: com_aurellem_send_AudioSend @@ -582,7 +589,7 @@ =javax.sound.sampled.AudioFormat= object from data in the Device. This way, there is no ambiguity about what the bits created by =step= and returned by =getSamples= mean. - +#+srcname: jni-init #+begin_src C /* * Class: com_aurellem_send_AudioSend @@ -635,7 +642,7 @@ *** Boring Device management stuff This code is more-or-less copied verbatim from the other =OpenAL= backends. It's the basis for =OpenAL='s primitive object system. - +#+srcname: device-init #+begin_src C //////////////////// Device Initialization / Management @@ -830,7 +837,19 @@ #+begin_src C :tangle ../Alc/backends/send.c -<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> +<> #+end_src