Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 277643 Details for
Bug 372413
Improved ebuild for games-action/transcend, also fixing sound on amd64
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The patch for the portaudio version shipped with transcend tarball, from bugs.debian.org
40_wordsize.dpatch (text/plain), 2.06 KB, created by
the_mgt
on 2011-06-20 23:32:43 UTC
(
hide
)
Description:
The patch for the portaudio version shipped with transcend tarball, from bugs.debian.org
Filename:
MIME Type:
Creator:
the_mgt
Created:
2011-06-20 23:32:43 UTC
Size:
2.06 KB
patch
obsolete
>#! /bin/sh /usr/share/dpatch/dpatch-run >## 40_wordsize.dpatch by Peter De Wachter <pdewacht@gmail.com> >## >## All lines beginning with `## DP:' are a description of the patch. >## DP: Fix portaudio for 64 bit platforms > >@DPATCH@ > >diff --git a/pa_common/pa_host.h b/pa_common/pa_host.h >index db898fe..db12e51 100644 >--- a/pa_common/pa_host.h >+++ b/pa_common/pa_host.h >@@ -48,17 +48,19 @@ extern "C" > #define SUPPORT_AUDIO_CAPTURE (1) > #endif > >+#include <inttypes.h> >+ > #ifndef int32 >- typedef long int32; >+ typedef int32_t int32; > #endif > #ifndef uint32 >- typedef unsigned long uint32; >+ typedef uint32_t uint32; > #endif > #ifndef int16 >- typedef short int16; >+ typedef int16_t int16; > #endif > #ifndef uint16 >- typedef unsigned short uint16; >+ typedef uint16_t uint16; > #endif > > /* Used to convert between various sample formats. */ >diff --git a/pa_common/pa_lib.c b/pa_common/pa_lib.c >index bf97de2..b48d105 100644 >--- a/pa_common/pa_lib.c >+++ b/pa_common/pa_lib.c >@@ -498,10 +498,10 @@ internalPortAudioStream* PaHost_GetStreamRepresentation( PortAudioStream *stream > #define PA_DITHER_SCALE (1.0f / ((1<<PA_DITHER_BITS)-1)) > long PaConvert_TriangularDither( void ) > { >- static unsigned long previous = 0; >- static unsigned long randSeed1 = 22222; >- static unsigned long randSeed2 = 5555555; >- long current, highPass; >+ static uint32 previous = 0; >+ static uint32 randSeed1 = 22222; >+ static uint32 randSeed2 = 5555555; >+ int32 current, highPass; > /* Generate two random numbers. */ > randSeed1 = (randSeed1 * 196314165) + 907633515; > randSeed2 = (randSeed2 * 196314165) + 907633515; >@@ -510,7 +510,7 @@ long PaConvert_TriangularDither( void ) > * Also shift an extra bit for the high pass filter. > */ > #define DITHER_SHIFT ((32 - PA_DITHER_BITS) + 1) >- current = (((long)randSeed1)>>DITHER_SHIFT) + (((long)randSeed2)>>DITHER_SHIFT); >+ current = (((int32)randSeed1)>>DITHER_SHIFT) + (((int32)randSeed2)>>DITHER_SHIFT); > /* High pass filter to reduce audibility. */ > highPass = current - previous; > previous = current;
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 372413
:
277641
| 277643