diff options
author | vs <vs@FreeBSD.org> | 2004-07-25 06:42:44 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2004-07-25 06:42:44 +0800 |
commit | f2014fa411a1f7e23fb9a5354f36aa18e2109e19 (patch) | |
tree | 2c84cac44eb7dd3502db07ed4dd7b9d46e9d1cf1 /emulators | |
parent | 04e9fe8604d4af72ad5be34ea468171a576b2fdd (diff) | |
download | freebsd-ports-gnome-f2014fa411a1f7e23fb9a5354f36aa18e2109e19.tar.gz freebsd-ports-gnome-f2014fa411a1f7e23fb9a5354f36aa18e2109e19.tar.zst freebsd-ports-gnome-f2014fa411a1f7e23fb9a5354f36aa18e2109e19.zip |
Fix sound-issue. You will have to restart ZSNES each
time you modify the sound settings within the sound menu for them to work
properly, though.
PR: ports/67644
Submitted by: Travis Poppe
Approved by: maintainer timeout
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/zsnes/Makefile | 5 | ||||
-rw-r--r-- | emulators/zsnes/files/patch-aa | 20 |
2 files changed, 24 insertions, 1 deletions
diff --git a/emulators/zsnes/Makefile b/emulators/zsnes/Makefile index 7143491afa4c..203467ac51d4 100644 --- a/emulators/zsnes/Makefile +++ b/emulators/zsnes/Makefile @@ -7,7 +7,7 @@ PORTNAME= zsnes PORTVERSION= 1.36 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= emulators MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} @@ -36,4 +36,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src GNU_CONFIGURE= yes ALL_TARGET= ALL +post-install: + @${CAT} ${PKGMESSAGE} + .include <bsd.port.mk> diff --git a/emulators/zsnes/files/patch-aa b/emulators/zsnes/files/patch-aa new file mode 100644 index 000000000000..a8547a18074d --- /dev/null +++ b/emulators/zsnes/files/patch-aa @@ -0,0 +1,20 @@ +--- linux/sdllink.c.orig Mon May 31 01:15:18 2004 ++++ linux/sdllink.c Mon May 31 01:16:17 2004 +@@ -493,7 +493,7 @@ + int InitSound(void) + { + SDL_AudioSpec wanted; +- const int samptab[7] = { 1, 1, 2, 4, 2, 4, 4 }; ++ const int samptab[7] = { 64, 64, 128, 256, 128, 256, 256 }; + const int freqtab[7] = { 8000, 11025, 22050, 44100, 16000, 32000, 48000 }; + + SDL_CloseAudio(); +@@ -519,7 +519,7 @@ + wanted.channels = 1; + } + +- wanted.samples = samptab[SoundQuality] * 128 * wanted.channels; ++ wanted.samples = samptab[SoundQuality] * 8 * wanted.channels; + wanted.format = AUDIO_S16LSB; + wanted.userdata = NULL; + wanted.callback = UpdateSound; |