audio perf: type annotations (lint baseline)

This commit is contained in:
4DBug committed 2026-11-01 19:50:56 -06:00
1 parent a2cd103674
commit 688503fb2d
3 files changed
+6 -4

No files matched your search

+3 -1
View File
@@ -221,7 +221,9 @@ if want("midi render sf2 (test song)") or want("midi render fallback") or want("
render("midi render sf2 (test song)", 3, function()
return assert(Midi.render(song, { soundfont = sf, tail = 0 }))
end)
local fb = assert(Midi.decode(Bytes.reader(buffer.fromstring(case(require("@tests/gen/midi_cases"), "song").data))))
local midiCases: any = require("@tests/gen/midi_cases")
local fbData: string = case(midiCases, "song").data
local fb = assert(Midi.decode(Bytes.reader(buffer.fromstring(fbData))))
render("midi render fallback", 3, function()
return assert(Midi.render(fb, { tail = 0 }))
end)