freebsd-ports/games/tenebrae/files/patch-snd_sdl.c
Stefan Eßer a563c59fb3 Fix build with -fno-common
While here add license (GPLv2+, included in all source files).
2020-09-30 11:33:22 +00:00

24 lines
583 B
C

--- snd_sdl.c.orig 2020-09-30 11:25:10 UTC
+++ snd_sdl.c
@@ -94,7 +94,7 @@ qboolean SNDDMA_Init(void)
shm = &the_shm;
shm->splitbuffer = 0;
shm->samplebits = (obtained.format & 0xFF);
- shm->speed = obtained.freq;
+ shm->speed = desired.freq;
shm->channels = obtained.channels;
shm->samples = obtained.samples*shm->channels;
shm->samplepos = 0;
@@ -119,3 +119,12 @@ void SNDDMA_Shutdown(void)
}
}
+/*
+==============
+SNDDMA_Submit
+Send sound to device if buffer isn't really the dma buffer
+===============
+*/
+void SNDDMA_Submit(void)
+{
+}