diff options
author | Anders Nordby <anders@FreeBSD.org> | 2002-11-18 05:08:19 +0000 |
---|---|---|
committer | Anders Nordby <anders@FreeBSD.org> | 2002-11-18 05:08:19 +0000 |
commit | 728184c6e1679c39f9779a6f6b793026355d210c (patch) | |
tree | 5ab029e6fe3c361acc89f30828244c32d82bc490 /audio/libsidplay2/files | |
parent | Fix MASTER_SITE_SUBDIR. (diff) |
Update to version 2.0.7 after repo-copy from ports/audio/libsidplay.
Notes
Notes:
svn path=/head/; revision=70374
Diffstat (limited to 'audio/libsidplay2/files')
-rw-r--r-- | audio/libsidplay2/files/patch-libtool | 12 | ||||
-rw-r--r-- | audio/libsidplay2/files/patch-src-player.cpp | 73 |
2 files changed, 79 insertions, 6 deletions
diff --git a/audio/libsidplay2/files/patch-libtool b/audio/libsidplay2/files/patch-libtool index 3087118bc186..d32b8a312bdf 100644 --- a/audio/libsidplay2/files/patch-libtool +++ b/audio/libsidplay2/files/patch-libtool @@ -1,11 +1,11 @@ ---- configure.orig Sat Jan 12 02:17:19 2002 -+++ configure Sat Jan 12 02:18:08 2002 -@@ -6159,7 +6159,7 @@ - LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" +--- configure.orig Mon May 7 19:23:11 2001 ++++ configure Mon Nov 18 05:04:02 2002 +@@ -1841,7 +1841,7 @@ + LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" # Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' +LIBTOOL='libtool' - # Prevent multiple expansion - + # Redirect the config.log output again, so that the ltconfig log is not + # clobbered by the next message. diff --git a/audio/libsidplay2/files/patch-src-player.cpp b/audio/libsidplay2/files/patch-src-player.cpp new file mode 100644 index 000000000000..77b0365c449b --- /dev/null +++ b/audio/libsidplay2/files/patch-src-player.cpp @@ -0,0 +1,73 @@ +--- src/player.cpp.orig Mon May 7 17:09:39 2001 ++++ src/player.cpp Sun Oct 6 20:53:45 2002 +@@ -580,34 +580,49 @@ + int player::loadFilter (const sid_fc_t *cutoffs, uint_least16_t points) + { + #ifndef HAVE_HARDSID +- fc_point fc[0x800]; +- +- // Make sure there are enough filter points and they are legal +- if ((points < 2) || (points > 0x800)) +- goto player_loadFilter_error; ++ fc_point fc[0x802]; ++ const fc_point *f0 = fc; ++ int pnts = 0; + ++ if (cutoffs == NULL) ++ { // Select default filter ++ sid.fc_default (f0, pnts); ++ sid2.fc_default (f0, pnts); ++ } ++ else + { +- const sid_fc_t *val, *valp, vals = {-1, 0}; +- // Last check, make sure they are list in numerical order +- // for both axis +- val = &vals; // (start) +- for (int i = 0; i < points; i++) ++ pnts = points; ++ // Make sure there are enough filter points and they are legal ++ if ((pnts < 2) || (pnts > 0x800)) ++ goto player_loadFilter_error; ++ + { +- valp = val; +- val = &cutoffs[i]; +- if ((*valp)[0] > (*val)[0]) +- goto player_loadFilter_error; +-// if ((*valp)[1] >= (*val)[1]) +-// goto player_loadFilter_error; +- fc[i][0] = (sound_sample) (*val)[0]; +- fc[i][1] = (sound_sample) (*val)[1]; ++ const sid_fc_t fstart = {-1, 0}; ++ const sid_fc_t *fprev = &fstart, *fin = cutoffs; ++ fc_point *fout = fc; ++ // Last check, make sure they are list in numerical order ++ // for both axis ++ while (pnts-- > 0) ++ { ++ if ((*fprev)[0] >= (*fin)[0]) ++ goto player_loadFilter_error; ++ fout++; ++ (*fout)[0] = (sound_sample) (*fin)[0]; ++ (*fout)[1] = (sound_sample) (*fin)[1]; ++ fprev = fin++; ++ } ++ // Updated ReSID interpolate requires we ++ // repeat the end pnts ++ *(fout+1) = *fout; ++ fc[0] = fc[1]; ++ pnts = points + 2; + } + } + + // function from reSID +- points--; +- interpolate (fc, fc, fc + points, fc + points, sid.fc_plotter (), 1.0); +- interpolate (fc, fc, fc + points, fc + points, sid2.fc_plotter(), 1.0); ++ pnts--; ++ interpolate (f0, f0 + pnts, sid.fc_plotter (), 1.0); ++ interpolate (f0, f0 + pnts, sid2.fc_plotter (), 1.0); + return 0; + + player_loadFilter_error: |