]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_win.c
implemented Shadow Volume BSP based culling of lit surfaces, this is slightly better...
[xonotic/darkplaces.git] / snd_win.c
index 6b0225055b9a8fc3a098911cf861b3a723f0aebf..06aed2bbe03dcb4f358b4aa67d50853aa6302bb1 100644 (file)
--- a/snd_win.c
+++ b/snd_win.c
@@ -152,10 +152,14 @@ static qboolean SndSys_BuildWaveFormat (const snd_format_t* requested, WAVEFORMA
        pfmtex->nBlockAlign = pfmtex->nChannels * pfmtex->wBitsPerSample / 8;
        pfmtex->nAvgBytesPerSec = pfmtex->nSamplesPerSec * pfmtex->nBlockAlign;
 
+       // LordHavoc: disabled this WAVE_FORMAT_EXTENSIBLE support because it does not seem to be working
+#if 0
        if (requested->channels <= 2)
        {
+#endif
                pfmtex->wFormatTag = WAVE_FORMAT_PCM;
                pfmtex->cbSize = 0;
+#if 0
        }
        else
        {
@@ -183,6 +187,7 @@ static qboolean SndSys_BuildWaveFormat (const snd_format_t* requested, WAVEFORMA
                                return false;
                }
        }
+#endif
 
        return true;
 }
@@ -321,7 +326,7 @@ static sndinitstat SndSys_InitDirectSound (const snd_format_t* requested)
                        requested->speed != format.Format.nSamplesPerSec)
                {
                        Con_Printf("DS:CreateSoundBuffer Failed (%d): channels=%u, width=%u, speed=%u\n",
-                                          result, format.Format.nChannels, format.Format.wBitsPerSample / 8, format.Format.nSamplesPerSec);
+                                          (int)result, (unsigned)format.Format.nChannels, (unsigned)format.Format.wBitsPerSample / 8, (unsigned)format.Format.nSamplesPerSec);
                        SndSys_Shutdown ();
                        return SIS_FAILURE;
                }