ports/67644: [FIX/UPDATE] Fix ZSNES Sound
Travis Poppe
tlp at LiquidX.org
Mon Jun 7 00:10:26 UTC 2004
>Number: 67644
>Category: ports
>Synopsis: [FIX/UPDATE] Fix ZSNES Sound
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Jun 06 17:10:25 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: Travis Poppe <tlp at LiquidX.org>
>Release:
>Organization:
>Environment:
>Description:
[FIX/UPDATE] Fix ZSNES Sound
>How-To-Repeat:
>Fix:
The 'files' directory, 'pkg-message' and 'files/patch-aa' files have been added with this revision.
diff -ruN zsnes.orig/Makefile zsnes/Makefile
--- zsnes.orig/Makefile Mon Mar 15 21:23:37 2004
+++ zsnes/Makefile Sun Jun 6 17:52:27 2004
@@ -7,7 +7,7 @@
PORTNAME= zsnes
PORTVERSION= 1.36
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@@ -35,5 +35,8 @@
GNU_CONFIGURE= yes
ALL_TARGET= ALL
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff -ruN zsnes.orig/files/patch-aa zsnes/files/patch-aa
--- zsnes.orig/files/patch-aa Wed Dec 31 17:00:00 1969
+++ zsnes/files/patch-aa Sun Jun 6 17:49:46 2004
@@ -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;
diff -ruN zsnes.orig/pkg-message zsnes/pkg-message
--- zsnes.orig/pkg-message Wed Dec 31 17:00:00 1969
+++ zsnes/pkg-message Sun Jun 6 17:53:04 2004
@@ -0,0 +1,14 @@
+-------------------------------------------------------------------------------
+This port revision fixes a sound problem (distortion) many have been
+experiencing with ZSNES on FreeBSD.
+
+With this revision comes a new bug. You will have to restart ZSNES each
+time you modify the sound settings within the sound menu for them to work
+properly.
+
+Please let me know if you experience any other problems or if you have
+any information regarding this issue!
+
+- Travis Poppe
+tlp at LiquidX.org
+-------------------------------------------------------------------------------
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list