summaryrefslogtreecommitdiff
path: root/package/esound/patches
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/esound/patches
Initial import
Diffstat (limited to 'package/esound/patches')
-rw-r--r--package/esound/patches/patch-esd_c23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/esound/patches/patch-esd_c b/package/esound/patches/patch-esd_c
new file mode 100644
index 000000000..ebec477a1
--- /dev/null
+++ b/package/esound/patches/patch-esd_c
@@ -0,0 +1,23 @@
+$Id$
+
+ cast to double, to avoid sinf, patch from Sven Gugges
+
+--- esound-0.2.38.orig/esd.c 2007-05-03 22:28:35.000000000 +0200
++++ esound-0.2.38/esd.c 2007-05-19 17:21:23.000000000 +0200
+@@ -131,14 +131,14 @@ void set_audio_buffer( void *buf, esd_fo
+ {
+ case ESD_BITS8:
+ for ( i = 0 ; i < length ; i+=2 ) {
+- sample = sin( (float)(i+offset) * kf );
++ sample = sin( (double)(i+offset) * kf );
+ uc_buf[i] = 127 + magl * sample;
+ uc_buf[i+1] = 127 + magr * sample;
+ }
+ break;
+ case ESD_BITS16: /* assume same endianness */
+ for ( i = 0 ; i < length ; i+=2 ) {
+- sample = sin( (float)(i+offset) * kf );
++ sample = sin( (double)(i+offset) * kf );
+ ss_buf[i] = magl * sample;
+ ss_buf[i+1] = magr * sample;
+ }