From 72d9253ab2e5e0630c824c7130a40b7158323bc9 Mon Sep 17 00:00:00 2001 From: wyatt8740 Date: Sun, 1 Oct 2023 23:53:17 -0400 Subject: Got X11 QuakeWorld to build (no GLQuakeWorld yet!). Added support for 24-bit color depth (ripped out of WinQuake, which appears to have a newer version of vid_x.c). Also, added SDL audio code (almost directly translated from WinQuake/netquake code). --- QW/client/sound.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'QW/client/sound.h') diff --git a/QW/client/sound.h b/QW/client/sound.h index 941e620..c1e90fa 100644 --- a/QW/client/sound.h +++ b/QW/client/sound.h @@ -111,9 +111,14 @@ channel_t *SND_PickChannel(int entnum, int entchannel); // spatializes a channel void SND_Spatialize(channel_t *ch); +#if defined(USE_SDL2) +/* Probably the easiest way to retrofit quakespasm's SDL2 audio code into + Id Quake. */ +qboolean SNDDMA_Init(dma_t *dma); +#else // initializes cycling through a DMA buffer and returns information on it qboolean SNDDMA_Init(void); - +#endif // gets the current DMA position int SNDDMA_GetDMAPos(void); -- cgit v1.2.3