Lot of dependencies
Hi @dfcreative,
I've just tried to use the new audio-loader 0.6.0 and I took more than 10 seconds to install on my computer... And I don't think that's a good user experience, so I would love to solve it.
The only solution I can find is split this module in two: one for browser and other one for node, but I'm open to suggestions.
What do you think?
Hi @danigb. I guess you're right. It is difficult to maintain 2 versions of the same code though
Hi,
I'm not thinking in maintain two version on the same code. For this I'm thinking in two options:
- Split the code in two modules. Something like
audio-loaderfor browser, andaudio-loadfor node that depends on the previous one and adds the node support (something like extracting the currentindex.jsfile). Or maybe three modules:to-audio-bufferto make the conversions, and two modules, one for browser and other for node. - Release two npm packages using the same codebase.
I was planning to use audio-load for extending audio-loader to support streamed loading, like soundcloud streams. That could make audio work with streamed sources, what would be sweet. So I can just make audio-load a node/etc wrapper for audio-loader, that would solve the issue.