Hacker News new | ask | show | jobs
by still_grokking 1669 days ago
The idea seems quite nice but the execution isn't.

This uses crazy amounts of resources for what it offers. Electron just isn't the right platform for such a thing, imho.

Should be a nice Rust / OCaml / C++ / "whatever native" app with max. 10% the size and 1% of the current resource usage.

Maybe it's better on other systems regarding resources but the Linux version I've tried made my laptop fan go into fighter-jet mode. That's not appropriate for playing music and showing some "shaken images". When using my desktop media player (smplayer) and projectM as visualization there is hardly any load on the same system (and the fan remains of course completely off).

I'm not sure the media player component in this project here is even needed. If the visualization needs to analyze larger parts of the audio it could delay and buffer the signal (which would work for longer running background music well enough), or just analyze the files on disk upfront and save the results externally. At least on Linux there is some generic audio player interface that shows for example a widget in the task bar (I don't know about the details how this works, but it works). Information from this interface could be used to know which track is playing currently and get notified about track changes (showing the title and cover art and offering play/stop/pause/forward/rewind buttons is what the generic audio player widget can do so the needed information about player state is available and can be obtained likely also form other apps). I would guess such an audio player interface is also there on other desktop operating systems so such a visualization could be made cross platform likely.

Just my 2ยข.