]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.h
bring back the stupid Matrix4x4_Invert call as it breaks on my gcc in release builds...
[xonotic/darkplaces.git] / snd_main.h
index 0eea2fdd1769f90c78a4f1c566fbf1147f5721f2..a56227854fe9f0b72dbd3a97343dece28925c446 100644 (file)
@@ -185,5 +185,29 @@ qboolean SndSys_LockRenderBuffer (void);
 // Release the exclusive lock on "snd_renderbuffer"
 void SndSys_UnlockRenderBuffer (void);
 
+// exported for capturevideo so ogg can see all channels
+typedef struct portable_samplepair_s
+{
+       int sample[SND_LISTENERS];
+} portable_sampleframe_t;
+// LordHavoc: was 512, expanded to 2048
+#define        PAINTBUFFER_SIZE 2048
+
+typedef struct listener_s
+{
+       int channel_unswapped; // for un-swapping
+       float yawangle;
+       float dotscale;
+       float dotbias;
+       float ambientvolume;
+}
+listener_t;
+typedef struct speakerlayout_s
+{
+       const char *name;
+       unsigned int channels;
+       listener_t listeners[SND_LISTENERS];
+}
+speakerlayout_t;
 
 #endif