comments: wrap long lines
This commit is contained in:
1 parent
31f977ab95
commit
a905f48575
4 files changed
+11
-7
No files matched your search
@@ -339,7 +339,8 @@ local function adts(track: Types.Track, packets: { Types.Packet }): (buffer?, Er
|
||||
return w:finish(), nil
|
||||
end
|
||||
|
||||
-- trim: a container's codec delay (Matroska CodecDelay, an MP4 edit's media time for MP2 / MP3 / AAC, as ffmpeg) and end padding
|
||||
-- trim: a container's codec delay (Matroska CodecDelay, an MP4 edit's media time for MP2 / MP3 / AAC, as ffmpeg)
|
||||
-- and end padding
|
||||
function AudioWrap.trim(dec: any, skip: number, length: number?): any
|
||||
if skip <= 0 and length == nil then
|
||||
return dec
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
--!strict
|
||||
--!optimize 2
|
||||
-- containers/Zip: ZIP (PKWARE APPNOTE 6.3), read and written. The reader is absorbed from zip-luau 121d4b0 (same author,
|
||||
-- no third-party code): EOCD search, ZIP64, prefix shifts (self-extractor stubs), stored / deflated entries, data
|
||||
-- descriptors. The writer is new: stored / deflated, UTF-8 names, DOS times, raw entry copies, ZIP64 when needed.
|
||||
-- containers/Zip: ZIP (PKWARE APPNOTE 6.3), read and written. The reader is absorbed from zip-luau 121d4b0 (same
|
||||
-- author, no third-party code): EOCD search, ZIP64, prefix shifts (self-extractor stubs), stored / deflated entries,
|
||||
-- data descriptors. The writer is new: stored / deflated, UTF-8 names, DOS times, raw entry copies, ZIP64 when needed.
|
||||
-- Never throws: corrupt archives and bad arguments return nil, Err.
|
||||
local Err = require("@rosetta/core/Err")
|
||||
local Types = require("@rosetta/Types")
|
||||
@@ -306,7 +306,8 @@ local function extract(b: buffer, e: Entry, dataStart: number): (buffer?, any)
|
||||
return out
|
||||
end
|
||||
|
||||
-- data offset candidates: the local header's lengths, then the central directory's (some writers get the local extra wrong)
|
||||
-- data offset candidates: the local header's lengths, then the central directory's (some writers get the local
|
||||
-- extra length wrong)
|
||||
function Zip._starts(b: buffer, e: Entry): { number }
|
||||
local o = e.offset
|
||||
local starts = {}
|
||||
|
||||
@@ -374,7 +374,8 @@ function K.nearest(src: buffer, w: number, h: number, bpp: number, dst: buffer,
|
||||
end
|
||||
end
|
||||
|
||||
-- affine: dst pixel centres through m = { a, b, c, d, e, f } (xin = a x + b y + c), bilinear with clamped neighbours; centres outside the source -> zeros (Pillow)
|
||||
-- affine: dst pixel centres through m = { a, b, c, d, e, f } (xin = a x + b y + c), bilinear with clamped
|
||||
-- neighbours; centres outside the source -> zeros (Pillow)
|
||||
function K.affine(src: buffer, w: number, h: number, ch: number, kind: number, dst: buffer, ow: number, oh: number, m: { number })
|
||||
local a, b, c, d, e, f = m[1], m[2], m[3], m[4], m[5], m[6]
|
||||
local size = kind
|
||||
|
||||
@@ -183,7 +183,8 @@ export type SampleSpec = {
|
||||
|
||||
local LOOPS: { [string]: number } = { none = 0, forward = 1, pingpong = 2 }
|
||||
|
||||
-- tuning: c5speed for S3M / IT; relativeNote + finetune (1/128 semitone from 8363 Hz) for MOD / XM (MOD stores only the finetune, -1..+7/8 semitone)
|
||||
-- tuning: c5speed for S3M / IT; relativeNote + finetune (1/128 semitone from 8363 Hz) for MOD / XM (MOD stores
|
||||
-- only the finetune, -1..+7/8 semitone)
|
||||
function MusicOps.addSample(m: any, spec: SampleSpec): (number?, Err.Err?)
|
||||
if not isModule(m) then
|
||||
return bad("addSample: needs a tracker Module")
|
||||
|
||||
Reference in new issue
Block a user