Commit graph

5 commits

Author SHA1 Message Date
ShittyKopper
f58f0eaf92 upd: make the mod tracker work in dev mode
this is an ugly hack but it's a ugly hack that works.
2024-01-15 18:11:03 +03:00
ShittyKopper
d03ad221a1 chore: refactor chiptune2 2024-01-15 15:42:47 +03:00
ShittyKopper
af3065f315 upd: Refactor mod player
Imports parts of the reworked mod player code from Firefish, mainly
replacing the canvas based renderer with a DOM based one, and lazily
loading libopenmpt only when needed.

Notably does not fix the mod player not working on dev mode. The vite dev
server doesn't seem to like how libopenmpt loads it's wasm binary.

I reverted all the styling changes that weren't necessary for the DOM
renderer due to the pending media UI changes[1] from upstream. I'd like
to attempt to make the mod player consistent with *that* once it's merged.

I also went ahead and module-ified the CSS classes to be more in line with
latest Misskey coding practices.

[1]: https://github.com/misskey-dev/misskey/pull/12925

Co-authored-by: Essem <smswessem@gmail.com>
2024-01-15 15:42:47 +03:00
Mar0xy
87d7dee620
chore: lint 2023-11-02 23:32:43 +01:00
Mar0xy
a8b4689501
upd: add modplayer 2023-11-02 23:14:36 +01:00