From 7970619459c51816457939009d2d88cce2f37e8a Mon Sep 17 00:00:00 2001 From: wyatt8740 Date: Mon, 2 Oct 2023 00:42:11 -0400 Subject: fixed sdl audio; i'd forgotten to init it -_- --- QW/client/snd_sdl.c | 5 +++-- QW/client/vid_x.c | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'QW') diff --git a/QW/client/snd_sdl.c b/QW/client/snd_sdl.c index a65758c..fb46cb9 100644 --- a/QW/client/snd_sdl.c +++ b/QW/client/snd_sdl.c @@ -117,8 +117,9 @@ qboolean SNDDMA_Init (dma_t *dma) } /* i think i'm just zeroing dma mem here */ memset ((void *) dma, 0, sizeof(dma_t)); - /*shm = dma;*/ - shm = &sn; + Con_Printf("TRYING TO INIT AUDIO\n"); + shm = dma; + // shm = &sn; /* Fill the audio DMA information block */ /* Since we passed NULL as the 'obtained' spec to SDL_OpenAudio(), diff --git a/QW/client/vid_x.c b/QW/client/vid_x.c index c96545c..fc785b6 100644 --- a/QW/client/vid_x.c +++ b/QW/client/vid_x.c @@ -450,6 +450,9 @@ void VID_Init (unsigned char *palette) XVisualInfo template; int num_visuals; int template_mask; + + // Sound init is here in quakeworld. Not sure why. :p + S_Init(); ignorenext=0; vid.width = 320; -- cgit v1.2.3