Giter VIP home page Giter VIP logo

Comments (4)

ungoldman avatar ungoldman commented on June 13, 2024

This would allow us to more easily open/close the library window while the player is still going and also include a menubar process. The three could communicate and stay in sync with IPC messages. Only caveat is I think we'd need to manage communication between renderer processes on the main thread using ipcMain since I think ipcRenderer can only communicate with the main thread and not renderer siblings. That should work out well though since we probably want the main thread to act as the canonical store for audio state.

from hyperamp.

bcomnes avatar bcomnes commented on June 13, 2024

This sounds like a good next step, although I am curious to see if there are any advantages to eventually using any of the c++ libs or http://audiocogs.org library outside of a window process (either in the node/main process or with a fork worker and messaging over IPC).

from hyperamp.

ungoldman avatar ungoldman commented on June 13, 2024

Might be worth investigating but be warned packaging an electron app for distrubition and including compiled/native code from a third party is not an obvious problem to solve (at least for me in the past).

Would be interested to see how it's done as I'd like to distribute https://github.com/ungoldman/himawari-bg as a menubar app but have not figured out how to include imagemagick & graphicsmagick in the bundle yet.

from hyperamp.

bcomnes avatar bcomnes commented on June 13, 2024

I think it depends on the native module packaging. Some require unbundled external shared libraries (like imagemagic right?) and others bundle the dependency into the native module (like https://github.com/paixaop/node-sodium) that can be fully installed with npm when the build environment has the gyp requirements (e.g. c++ compiler, python etc.)

I've never done packaging for something like that before, so there are sure to be sharp edges, but I think its possible. Learning more about how to bind to C/C++ libraries is also something I've been interested in learning how to do for a while.

from hyperamp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.