Your message dated Fri, 29 Apr 2005 08:32:27 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#306824: fixed in zynaddsubfx 2.2.0-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 28 Apr 2005 18:03:28 +0000
>From [EMAIL PROTECTED] Thu Apr 28 11:03:28 2005
Return-path: <[EMAIL PROTECTED]>
Received: from 81-178-80-93.dsl.pipex.com (localhost.localdomain) 
[81.178.80.93] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DRDMG-0007n4-00; Thu, 28 Apr 2005 11:03:28 -0700
Received: from piem by localhost.localdomain with local (Exim 4.50)
        id 1DRDLa-0007Y9-BD; Thu, 28 Apr 2005 19:02:46 +0100
Date: Thu, 28 Apr 2005 19:02:46 +0100
From: Paul Brossier <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: zynaddsubfx: endian issue in oss mode
Message-ID: <[EMAIL PROTECTED]>
Reply-To: Paul Brossier <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="X1bOJ3K7DJ5YkBrT"
Content-Disposition: inline
X-Reportbug-Version: 3.11
User-Agent: Mutt/1.5.9i
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


--X1bOJ3K7DJ5YkBrT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: zynaddsubfx
Version: 2.2.1-1
Severity: important
Tags: patch

hi,

zynaddsubfx works fine in jack mode on big endian machines, but
outputs very strange noises when using the oss mode. the attached
patch adds adequate conversion. it applies to the latest 2.2.1
(and probably earlier).

cheers, piem


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.12-rc3-powerpc
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages zynaddsubfx depends on:
ii  fftw3                    3.0.1-11        Library for computing Fast Fourier
ii  libasound2               1.0.8-3         ALSA library
ii  libc6                    2.3.2.ds1-21    GNU C Library: Shared libraries an
ii  libfltk1.1c102           1.1.6-2         Fast Light Toolkit shared librarie
ii  libgcc1                  1:3.4.3-12      GCC support library
ii  libjack0.80.0-0          0.99.0-6        JACK Audio Connection Kit (librari
ii  libmxml1                 2.2-1           development files for libmlxml
ii  libstdc++5               1:3.3.5-12      The GNU Standard C++ Library v3
ii  libx11-6                 4.3.0.dfsg.1-12 X Window System protocol client li
ii  libxext6                 4.3.0.dfsg.1-12 X Window System miscellaneous exte
ii  libxft2                  2.1.7-1         FreeType-based font drawing librar
ii  xlibs                    4.3.0.dfsg.1-12 X Keyboard Extension (XKB) configu
ii  zlib1g                   1:1.2.2-4       compression library - runtime

-- no debconf information

--X1bOJ3K7DJ5YkBrT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="fix_zyn_oss_endian.patch"

--- ZynAddSubFX-2.2.1/src/Output/OSSaudiooutput.C       2005-03-14 
19:57:49.000000000 +0000
+++ zynaddsubfx-2.2.1/src/Output/OSSaudiooutput.C       2005-04-28 
18:48:22.000000000 +0100
@@ -31,6 +31,18 @@
 #include "OSSaudiooutput.h"
 #include "../Misc/Util.h"
 
+/* borrowed from glib2 */
+#define SHORT_SWAP_LE_BE(val)  ((short) ( \
+    (short) ((short) (val) >> 8) |     \
+    (short) ((short) (val) << 8)))
+
+static void swap_endian(short *data, int length)
+{
+       int i;
+       for (i = 0; i < length; i += 1, data++)
+               *data = SHORT_SWAP_LE_BE(*data);
+}
+
 OSSaudiooutput::OSSaudiooutput(){
     int i;
     int snd_bitsize=16;
@@ -76,6 +88,9 @@
        smps[i*2]=(short int) (l*32767.0);    
        smps[i*2+1]=(short int) (r*32767.0);
     };
+#ifdef __BIG_ENDIAN
+    swap_endian(smps, SOUND_BUFFER_SIZE*4);
+#endif
     write(snd_handle,smps,SOUND_BUFFER_SIZE*4);// *2 because is 16 bit, again 
* 2 because is stereo
 };
 

--X1bOJ3K7DJ5YkBrT--

---------------------------------------
Received: (at 306824-close) by bugs.debian.org; 29 Apr 2005 12:46:25 +0000
>From [EMAIL PROTECTED] Fri Apr 29 05:46:25 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DRUsz-0000Jx-00; Fri, 29 Apr 2005 05:46:25 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1DRUfT-0003zG-00; Fri, 29 Apr 2005 08:32:27 -0400
From: Eduardo Marcel Macan <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#306824: fixed in zynaddsubfx 2.2.0-2
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Fri, 29 Apr 2005 08:32:27 -0400
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Source: zynaddsubfx
Source-Version: 2.2.0-2

We believe that the bug you reported is fixed in the latest version of
zynaddsubfx, which is due to be installed in the Debian FTP archive:

zynaddsubfx_2.2.0-2.diff.gz
  to pool/main/z/zynaddsubfx/zynaddsubfx_2.2.0-2.diff.gz
zynaddsubfx_2.2.0-2.dsc
  to pool/main/z/zynaddsubfx/zynaddsubfx_2.2.0-2.dsc
zynaddsubfx_2.2.0-2_i386.deb
  to pool/main/z/zynaddsubfx/zynaddsubfx_2.2.0-2_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Eduardo Marcel Macan <[EMAIL PROTECTED]> (supplier of updated zynaddsubfx 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 29 Apr 2005 09:17:20 -0300
Source: zynaddsubfx
Binary: zynaddsubfx
Architecture: source i386
Version: 2.2.0-2
Distribution: unstable
Urgency: low
Maintainer: Eduardo Marcel Macan <[EMAIL PROTECTED]>
Changed-By: Eduardo Marcel Macan <[EMAIL PROTECTED]>
Description: 
 zynaddsubfx - Realtime software synthesizer for Linux
Closes: 306824
Changes: 
 zynaddsubfx (2.2.0-2) unstable; urgency=low
 .
   * Fixed endianess problem with user supplied patch (closes: #306824)
Files: 
 a9f258ce54473868051278fdaad3f29e 738 sound extra zynaddsubfx_2.2.0-2.dsc
 3e3654ab83c4215ef4490ad9e16ade71 6445 sound extra zynaddsubfx_2.2.0-2.diff.gz
 92852de5eb4404dd54989910ae30e7ca 967434 sound extra 
zynaddsubfx_2.2.0-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCcidqoUSye+uc2tURAlPaAKCMK4cFt7unyKCBSakdY1ifXCni9QCffTGu
zwXumFrxT7dIypl9dHtnzJs=
=J/S+
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to