From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jun 6 17:10:26 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3AFF716A4CE for ; Sun, 6 Jun 2004 17:10:26 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FA9443D55 for ; Sun, 6 Jun 2004 17:10:26 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i570APYj041531 for ; Sun, 6 Jun 2004 17:10:25 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i570APq1041530; Sun, 6 Jun 2004 17:10:25 -0700 (PDT) (envelope-from gnats) Resent-Date: Sun, 6 Jun 2004 17:10:25 -0700 (PDT) Resent-Message-Id: <200406070010.i570APq1041530@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Travis Poppe Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 636F216A4CE for ; Sun, 6 Jun 2004 17:04:49 -0700 (PDT) Received: from mail.cableone.net (scanmail3.cableone.net [24.116.0.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id E824343D48 for ; Sun, 6 Jun 2004 17:04:48 -0700 (PDT) (envelope-from tlp@LiquidX.org) Received: from maya.liquidx.org (unverified [24.119.12.184]) by smail3.cableone.net (SurgeMail 1.5d2) with ESMTP id 22907772 for multiple; Sun, 06 Jun 2004 16:51:25 -0700 Message-Id: <20040606180443.64df899b@maya.liquidx.org> Date: Sun, 6 Jun 2004 18:04:43 -0600 From: Travis Poppe To: FreeBSD-gnats-submit@FreeBSD.org, stijn@win.tue.nl Subject: ports/67644: [FIX/UPDATE] Fix ZSNES Sound X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2004 00:10:26 -0000 >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 >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 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 +------------------------------------------------------------------------------- >Release-Note: >Audit-Trail: >Unformatted: