- Update to 0.6.4

- Can to see the changes at http://mednafen.com/releases/ChangeLog

Approved by:	garga (mentor)
This commit is contained in:
Jose Alonso Cardenas Marquez 2006-08-24 22:44:42 +00:00
parent 19ecdf7990
commit 091e3e7c5c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=171345
3 changed files with 29 additions and 4 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= mednafen
PORTVERSION= 0.6.3
PORTVERSION= 0.6.4
CATEGORIES= emulators games
MASTER_SITES= http://mednafen.com/releases/

View file

@ -1,3 +1,3 @@
MD5 (mednafen-0.6.3.tar.bz2) = 34ae77769f6ffa5fd6426930cb33be1a
SHA256 (mednafen-0.6.3.tar.bz2) = e7a1bf6c35fbac83d0d5070ef76000638b4295ae70bb3efdcd0db9bbf7855111
SIZE (mednafen-0.6.3.tar.bz2) = 1564472
MD5 (mednafen-0.6.4.tar.bz2) = 00ae6624d2e674c8a77ab4ea0086c17c
SHA256 (mednafen-0.6.4.tar.bz2) = 149de61fc5dc1b34054a931438ecb22307a5c333e52826dfa98180a873608cbe
SIZE (mednafen-0.6.4.tar.bz2) = 1518068

View file

@ -0,0 +1,25 @@
--- src/Blip_Buffer.cpp Thu Aug 24 12:12:17 2006
+++ src/Blip_Buffer.cpp Thu Aug 24 12:12:48 2006
@@ -190,16 +190,16 @@
treble = 5.0;
long double const maxh = 4096.0;
- long double const rolloff = powl( 10.0, 1.0 / (maxh * 20.0) * treble / (1.0 - cutoff) );
- long double const pow_a_n = powl( rolloff, maxh - maxh * cutoff );
+ long double const rolloff = pow( 10.0, 1.0 / (maxh * 20.0) * treble / (1.0 - cutoff) );
+ long double const pow_a_n = pow( rolloff, maxh - maxh * cutoff );
long double const to_angle = pi / 2 / maxh / oversample;
for ( int i = 0; i < count; i++ )
{
long double angle = ((i - count) * 2 + 1) * to_angle;
- long double c = rolloff * cosl( (maxh - 1.0) * angle ) - cosl( maxh * angle );
- long double cos_nc_angle = cosl( maxh * cutoff * angle );
- long double cos_nc1_angle = cosl( (maxh * cutoff - 1.0) * angle );
- long double cos_angle = cosl( angle );
+ long double c = rolloff * cos( (maxh - 1.0) * angle ) - cos( maxh * angle );
+ long double cos_nc_angle = cos( maxh * cutoff * angle );
+ long double cos_nc1_angle = cos( (maxh * cutoff - 1.0) * angle );
+ long double cos_angle = cos( angle );
c = c * pow_a_n - rolloff * cos_nc1_angle + cos_nc_angle;
long double d = 1.0 + rolloff * (rolloff - cos_angle - cos_angle);