diff options
author | wiz <wiz@pkgsrc.org> | 2002-09-11 23:43:41 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2002-09-11 23:43:41 +0000 |
commit | 29cd1752044fe4734aca591826219bc57e2c221a (patch) | |
tree | 5991c635c6dd218365a76b1fd43ec2939871432c /games/mirrormagic/patches/patch-ad | |
parent | 1189f4a6f14e3c3b6b53173953d64d077166a692 (diff) | |
download | pkgsrc-29cd1752044fe4734aca591826219bc57e2c221a.tar.gz |
Update to 2.0.1, provided by Adam Ciarcinski, with minor fixes.
Changes:
- icon for Windows executable added
- bug when selecting default level series fixed
- new IFF style file format for level files
- fullscreen mode now works with Windows (workaround for bug in SDL)
- /dev/dsp support for NetBSD added (thanks to Krister Walfridsson)
- file permissions when saving files and creating directories changed
- some small sound bugs fixed
Diffstat (limited to 'games/mirrormagic/patches/patch-ad')
-rw-r--r-- | games/mirrormagic/patches/patch-ad | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/games/mirrormagic/patches/patch-ad b/games/mirrormagic/patches/patch-ad deleted file mode 100644 index 3534a7c40d5..00000000000 --- a/games/mirrormagic/patches/patch-ad +++ /dev/null @@ -1,43 +0,0 @@ -$NetBSD: patch-ad,v 1.1 2001/07/05 22:13:08 kristerw Exp $ ---- src/libgame/sound.c.orig Sun Dec 31 11:47:19 2000 -+++ src/libgame/sound.c Thu Jul 5 23:37:59 2001 -@@ -291,7 +291,30 @@ - - 2 buffers / 512 bytes (giving 1/16 second resolution for 8 kHz) - - (with stereo the effective buffer size will shrink to 256) - => fragment_size = 0x00020009 */ -+#if defined(PLATFORM_NETBSD) -+ { -+ audio_info_t a_info; - -+ AUDIO_INITINFO(&a_info); -+ a_info.play.encoding = AUDIO_ENCODING_LINEAR8; -+ a_info.play.precision = 8; -+ a_info.play.channels = 2; -+ a_info.play.sample_rate = sample_rate; -+ a_info.blocksize = fragment_size; -+ if (ioctl(audio.device_fd, AUDIO_SETINFO, &a_info) < 0) -+ { -+ /* Try to disable stereo. */ -+ a_info.play.channels = 1; -+ stereo = FALSE; -+ if (ioctl(audio.device_fd, AUDIO_SETINFO, &a_info) < 0) -+ { -+ Error(ERR_EXIT_SOUND_SERVER, -+ "cannot set sample rate of /dev/audio - no sounds"); -+ playing_sounds = 0; -+ } -+ } -+ } -+#else - if (ioctl(audio.device_fd,SNDCTL_DSP_SETFRAGMENT,&fragment_spec) < 0) - Error(ERR_EXIT_SOUND_SERVER, - "cannot set fragment size of /dev/dsp - no sounds"); -@@ -319,7 +342,7 @@ - if (ioctl(audio.device_fd, SNDCTL_DSP_GETBLKSIZE,&fragment_size) < 0) - Error(ERR_EXIT_SOUND_SERVER, - "cannot get fragment size of /dev/dsp - no sounds"); -- -+#endif - max_sample_size = fragment_size / (stereo ? 2 : 1); - } - |