FreeBSD Bugzilla – Attachment 43588 Details for
Bug 67644
[FIX/UPDATE] Fix ZSNES Sound
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.98 KB, created by
Travis Poppe
on 2004-06-07 01:10:25 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Travis Poppe
Created:
2004-06-07 01:10:25 UTC
Size:
1.98 KB
patch
obsolete
>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@LiquidX.org >+-------------------------------------------------------------------------------
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 67644
: 43588