diff options
| author | wyatt8740 <wyatt8740@users.noreply.github.com> | 2023-10-02 00:42:11 -0400 |
|---|---|---|
| committer | wyatt8740 <wyatt8740@users.noreply.github.com> | 2023-10-02 00:42:23 -0400 |
| commit | 7970619459c51816457939009d2d88cce2f37e8a (patch) | |
| tree | a34b0e0585c3fb6ae4574624a45dda312385d724 | |
| parent | 91df067e453c519ab1a8a919398c05ef87df5898 (diff) | |
| download | quake-pum-7970619459c51816457939009d2d88cce2f37e8a.tar.gz | |
fixed sdl audio; i'd forgotten to init it -_-
| -rw-r--r-- | QW/client/snd_sdl.c | 5 | ||||
| -rw-r--r-- | QW/client/vid_x.c | 3 |
2 files changed, 6 insertions, 2 deletions
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; |
