ref: 79298813cf7f19ad95c9787e0bd57a410f655ad5
parent: 32bb880971ed6c746c42d5c14d0319ad4cee4390
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu Mar 11 09:21:10 EST 2021
libtags update: S3M format
--- a/mkplist.c
+++ b/mkplist.c
@@ -30,6 +30,7 @@
[Fwav] = "wav",
[Fit] = "mod",
[Fxm] = "mod",
+ [Fs3m] = "mod",
};
static Meta *
@@ -151,7 +152,7 @@
close(1);
dup(p[1], 2); close(p[1]);
close(p[0]);
- execl("/bin/audio/moddec", "moddec", nil);
+ execl("/bin/audio/moddec", "moddec", "-r", "0", nil);
sysfatal("execl: %r");
}
close(p[1]);
@@ -195,7 +196,7 @@
}
if(ctx.duration == 0){
- if(ctx.format == Fit || ctx.format == Fxm)
+ if(ctx.format == Fit || ctx.format == Fxm || ctx.format == Fs3m)
ctx.duration = modduration(path);
if(ctx.duration == 0)
fprint(2, "%s: no duration\n", path);