]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.h
correctly swap the channels for vorbis audio encoding
[xonotic/darkplaces.git] / snd_main.h
index 61c43b5c2166b3ebc40180156601220e5a3782bf..a56227854fe9f0b72dbd3a97343dece28925c446 100644 (file)
@@ -193,4 +193,21 @@ typedef struct portable_samplepair_s
 // 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