Skip to content

Commit 34f425e

Browse files
committed
fasttracker2: update to b160
Changes since b159 Beta #160 - 19.06.2019 - Bugfix: Certain instrument properties could be modified even if the current instrument was zero. This is a special ins. number for pattern editing, it's not a real instrument. (You can set ins. #0 by pressing 0 on the numpad). - Bugfix: It was impossible to select an instrument higher than 0x60 (100) when using the numpad keys. - Bugfix: "Srnk." (shrink pattern) would erase the last row after its operation - Bugfix: When loading a floating point .wav, it would only load silence unless the amplitude peaked at max (1.0). - Bugfix: 16-bit mono .aiff files would not load correctly at all! - When loading 24-bit .wav/.aiff files, properly normalize amplitude before converting to 16-bit. This now takes up more CPU time and RAM, but it's worth it. - Default instrument envelopes were always read from preset slot #1. I don't like this at all, as it could mess things up when loading sample-only songs. It has now been changed to always use the stock envelope values when loading such files or when a new project is started (or instruments zapped). - Properly reject .it (Impulse Tracker) modules when attempted to be loaded - Code cleanup. Proper space alignment for special tab indents, removed extreme use of parenthesis, spaces etc.
1 parent 6033230 commit 34f425e

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

audio/fasttracker2/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# $NetBSD: Makefile,v 1.26 2019/06/16 22:01:05 fox Exp $
1+
# $NetBSD: Makefile,v 1.27 2019/06/20 11:39:06 fox Exp $
22

33
DISTNAME= ft2clone-${DISTVERSION}-code
44
PKGNAME= fasttracker2-${DISTVERSION:C/b/2./}
5-
DISTVERSION= b159
5+
DISTVERSION= b160
66
CATEGORIES= audio
77
MASTER_SITES= https://16-bits.org/ \
88
${MASTER_SITE_FREEBSD_LOCAL:=ehaupt/}

audio/fasttracker2/distinfo

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
$NetBSD: distinfo,v 1.25 2019/06/16 22:01:05 fox Exp $
1+
$NetBSD: distinfo,v 1.26 2019/06/20 11:39:06 fox Exp $
22

3-
SHA1 (ft2clone-b159-code.zip) = 737a9129db81858e6d09e6b8bf0006f6c932dcdd
4-
RMD160 (ft2clone-b159-code.zip) = 25a199b9addb47d7d4796133fa1c3d8cbc958c8e
5-
SHA512 (ft2clone-b159-code.zip) = 3a53ac32a15742eb1d4bacf0c1906cbf96c81e7f13d9bcdd5e6907fb1d393c46353afd7da651148f3e54da866737ad5b5e95cb3edd63579eee3d6a7aedece3af
6-
Size (ft2clone-b159-code.zip) = 3957477 bytes
7-
SHA1 (patch-src_ft2__diskop.c) = 9d19b3d4b0a32f61ecbcdda1f9b44e2532a98d41
8-
SHA1 (patch-src_ft2__unicode.c) = 7e61ebb563bb5edb592182461173d066493791e7
3+
SHA1 (ft2clone-b160-code.zip) = 4d98b6c27fd730961385dc0a98dbacd0096538ba
4+
RMD160 (ft2clone-b160-code.zip) = 304076cf25d6e97b045f186a7211119fe1d0c894
5+
SHA512 (ft2clone-b160-code.zip) = cd74a115e0907a3b96d8cfb7e7e7ea47a5f11b032f5ab4a6c070483facb60a46ab994b9682cc37dc45ce13bcd81f2085089232a4d0368ac6a5b763369b791efa
6+
Size (ft2clone-b160-code.zip) = 3954825 bytes
7+
SHA1 (patch-src_ft2__diskop.c) = 0ade49429ec36d44b6cb6bc3b829317fcd08df81
8+
SHA1 (patch-src_ft2__unicode.c) = 3dca4d5b2de1a2794bde7060d2f7bf6f4923c91c

audio/fasttracker2/patches/patch-src_ft2__diskop.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
$NetBSD: patch-src_ft2__diskop.c,v 1.3 2019/04/19 02:05:14 fox Exp $
1+
$NetBSD: patch-src_ft2__diskop.c,v 1.4 2019/06/20 11:39:06 fox Exp $
22

33
Added <sys/types.h> / <sys/stat.h> to prevent "unknown type name"
44
(dev_t, ino_t and nlink_t) error from the included <fts.h>.
55

66
--- src/ft2_diskop.c.orig 2019-04-19 01:53:39.359713817 +0000
77
+++ src/ft2_diskop.c
8-
@@ -13,6 +13,8 @@
8+
@@ -15,6 +15,8 @@
99
#include <direct.h>
1010
#include <shlobj.h> // SHGetFolderPathW()
1111
#else
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
$NetBSD: patch-src_ft2__unicode.c,v 1.2 2019/03/21 10:16:40 fox Exp $
1+
$NetBSD: patch-src_ft2__unicode.c,v 1.3 2019/06/20 11:39:06 fox Exp $
22

33
1. Added a type cast to iconv(3) calls to match the prototypes defined
44
in NetBSD's iconv.h.
55

66
2. Added a NetBSD specific iconv_open() call to prevent failures due
77
to mismatches iconv_open() parameters present in GNU iconv(3).
88

9-
--- src/ft2_unicode.c.orig 2019-03-16 22:34:24.000000000 +0000
9+
--- src/ft2_unicode.c.orig 2019-06-18 19:45:46.000000000 +0000
1010
+++ src/ft2_unicode.c
11-
@@ -277,7 +277,11 @@ char *cp437ToUtf8(char *src)
12-
inLen = srcLen;
11+
@@ -271,7 +271,11 @@ char *cp437ToUtf8(char *src)
12+
inLen = srcLen;
1313
outPtr = outBuf;
1414

1515
+#if defined(__NetBSD__)
@@ -20,24 +20,24 @@ to mismatches iconv_open() parameters present in GNU iconv(3).
2020
iconv(cd, NULL, NULL, &outPtr, &outLen); // flush
2121
iconv_close(cd);
2222

23-
@@ -307,6 +311,8 @@ char *utf8ToCp437(char *src, bool remove
23+
@@ -301,6 +305,8 @@ char *utf8ToCp437(char *src, bool remove
2424

2525
#ifdef __APPLE__
2626
cd = iconv_open("437//TRANSLIT//IGNORE", "UTF-8-MAC");
2727
+#elif defined(__NetBSD__)
28-
+ cd = iconv_open("437", "UTF-8");
28+
+ cd = iconv_open("437", "UTF-8");
2929
#else
3030
cd = iconv_open("437//TRANSLIT//IGNORE", "UTF-8");
3131
#endif
32-
@@ -323,7 +329,11 @@ char *utf8ToCp437(char *src, bool remove
33-
inLen = srcLen;
32+
@@ -317,7 +323,11 @@ char *utf8ToCp437(char *src, bool remove
33+
inLen = srcLen;
3434
outPtr = outBuf;
3535

3636
+#if defined(__NetBSD__)
3737
+ rc = iconv(cd, (const char **)&inPtr, &inLen, &outPtr, &outLen);
3838
+#else
3939
rc = iconv(cd, &inPtr, &inLen, &outPtr, &outLen);
40-
+#endif
40+
+#endif
4141
iconv(cd, NULL, NULL, &outPtr, &outLen); // flush
4242
iconv_close(cd);
4343

0 commit comments

Comments
 (0)