freebsd-ports/games/tenebrae/files/patch-snd_sdl.c
Alejandro Pulver dc044fd8e7 - Fix mouse problems.
- Fix sound problems.
- Fix building on !i386.
- Fix writting personal configuration, and do it in ~/.tenebrae, to avoid
  conflicts with other engines since they usually have different variables.
- Use USE_DOS2UNIX.
- Remove unneeded information from pkg-message (it depends on quake-data so it
  will be installed automatically, also quake-data installs the demo so
  tenebrae is playable after installation).
- Use release target instead of the debug one.
- Clean-up.

PR:		ports/98783
Approved by:	maintainer (timeout)
2006-06-17 21:32:32 +00:00

24 lines
559 B
C

--- ./snd_sdl.c.orig Sat Jun 10 12:08:13 2006
+++ ./snd_sdl.c Sat Jun 10 12:08:13 2006
@@ -94,7 +94,7 @@
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 @@
}
}
+/*
+==============
+SNDDMA_Submit
+Send sound to device if buffer isn't really the dma buffer
+===============
+*/
+void SNDDMA_Submit(void)
+{
+}