pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/libsidplay2 Change the way the sample table valu...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8dc94996c8aa
branches: trunk
changeset: 443838:8dc94996c8aa
user: nat <nat%pkgsrc.org@localhost>
date: Sat Dec 26 19:54:14 2020 +0000
description:
Change the way the sample table values are stored.
diffstat:
audio/libsidplay2/distinfo | 4 +-
audio/libsidplay2/patches/patch-libsidplay_src_xsid_xsid.cpp | 19 ++++++++++++
audio/libsidplay2/patches/patch-libsidplay_src_xsid_xsid.h | 13 ++++++++
3 files changed, 35 insertions(+), 1 deletions(-)
diffs (56 lines):
diff -r 5aac81bd2c04 -r 8dc94996c8aa audio/libsidplay2/distinfo
--- a/audio/libsidplay2/distinfo Sat Dec 26 17:02:37 2020 +0000
+++ b/audio/libsidplay2/distinfo Sat Dec 26 19:54:14 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2015/11/03 01:12:38 agc Exp $
+$NetBSD: distinfo,v 1.9 2020/12/26 19:54:14 nat Exp $
SHA1 (sidplay-libs-2.1.1.tar.gz) = 8af6350866edc30b0d331e075fa97292f6f645a5
RMD160 (sidplay-libs-2.1.1.tar.gz) = 1ce4c3cb80470a834c5887b3f3be0b61ca71e4cd
@@ -11,4 +11,6 @@
SHA1 (patch-builders_resid-builder_src_resid-builder.cpp) = 46d3686eb67256397458df1eac2c017465b616d8
SHA1 (patch-builders_resid-builder_src_resid.cpp) = db9f0bf3658c38e88eba7ced3f6102587558160d
SHA1 (patch-libsidplay_src_sidtune_SidTune.cpp) = 20f2a2f36db8c08989ad1239da15a91d82cd2a2f
+SHA1 (patch-libsidplay_src_xsid_xsid.cpp) = 5991e8efd3e648a344fb77468d9917617cff0530
+SHA1 (patch-libsidplay_src_xsid_xsid.h) = 61ca52d027afe5af2d22e044bf346f7a384a362d
SHA1 (patch-resid_sid.cc) = 88da243fab096f6b532af111c1d23ebc64ece632
diff -r 5aac81bd2c04 -r 8dc94996c8aa audio/libsidplay2/patches/patch-libsidplay_src_xsid_xsid.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/libsidplay2/patches/patch-libsidplay_src_xsid_xsid.cpp Sat Dec 26 19:54:14 2020 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-libsidplay_src_xsid_xsid.cpp,v 1.1 2020/12/26 19:54:14 nat Exp $
+Requires unsigned type to avoid overflow.
+Express data in hex.
+--- libsidplay/src/xsid/xsid.cpp.orig 2004-06-14 20:08:02.000000000 +0000
++++ libsidplay/src/xsid/xsid.cpp
+@@ -94,10 +94,10 @@ const int8_t XSID::sampleConvertTable[16
+ '\x08', '\x19', '\x2a', '\x3b', '\x4c', '\x5d', '\x6e', '\x7f'
+ };
+ */
+-const int8_t XSID::sampleConvertTable[16] =
++const uint8_t XSID::sampleConvertTable[16] =
+ {
+- '\x80', '\x94', '\xa9', '\xbc', '\xce', '\xe1', '\xf2', '\x03',
+- '\x1b', '\x2a', '\x3b', '\x49', '\x58', '\x66', '\x73', '\x7f'
++ 0x80, 0x94, 0xa9, 0xbc, 0xce, 0xe1, 0xf2, 0x03,
++ 0x1b, 0x2a, 0x3b, 0x49, 0x58, 0x66, 0x73, 0x7f
+ };
+
+ const char *XSID::credit =
diff -r 5aac81bd2c04 -r 8dc94996c8aa audio/libsidplay2/patches/patch-libsidplay_src_xsid_xsid.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/libsidplay2/patches/patch-libsidplay_src_xsid_xsid.h Sat Dec 26 19:54:14 2020 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-libsidplay_src_xsid_xsid.h,v 1.1 2020/12/26 19:54:14 nat Exp $
+Requires unsigned type to avoid overflow.
+--- libsidplay/src/xsid/xsid.h.orig 2004-06-14 20:08:02.000000000 +0000
++++ libsidplay/src/xsid/xsid.h
+@@ -238,7 +238,7 @@ private:
+ uint8_t sidData0x18;
+ bool _sidSamples;
+ int8_t sampleOffset;
+- static const int8_t sampleConvertTable[16];
++ static const uint8_t sampleConvertTable[16];
+ bool wasRunning;
+
+ private:
Home |
Main Index |
Thread Index |
Old Index