Moved an important audio engine comment to the correct position
@@ -56,10 +56,6 @@ typedef struct AUDIO_ENGINE_t {
const uint16_t channels = 2;
const uint16_t bytesPerSample = 2 * 2 /* channels */;
-// audio callback function
-// Allows SDL to "pull" data into the output buffer
-// on a seperate thread. We need to be pretty efficient
-// here as it holds a lock.
internal void
AUDIO_ENGINE_capture(WrenVM* vm) {
if (audioEngineClass == NULL) {
@@ -68,6 +64,10 @@ AUDIO_ENGINE_capture(WrenVM* vm) {
}
}
+// audio callback function
+// Allows SDL to "pull" data into the output buffer
+// on a seperate thread. We need to be pretty efficient
+// here as it holds a lock.
void AUDIO_ENGINE_mix(void* userdata,
Uint8* stream,
int outputBufferSize) {
