Coder Social home page Coder Social logo

Comments (6)

RobinSchmidt avatar RobinSchmidt commented on June 24, 2024

presets or license files? because these two types of files are handled by different classes. the license check is handled by the class PaywareAudioPlugIn (in your shared folder). preset files are handled by my AudioModule class. that's a kind of lower level "pseudo-plugin" class that handles presets, parameters, states, etc. but an AudioModule can be simply wrapped into a plugin (payware or not) by the call (i use the TestPlugin as example):

AudioProcessor* JUCE_CALLTYPE createPluginFilter()
{
  TestAudioModule *dummy = nullptr; 
  //return createPluginWithMidi(dummy);
  return createPaywarePlugin(dummy, TESTPLUGIN, 3);
}

you could introduce a juce::String member variable in the class PaywareAudioPlugIn and set it up like:

AudioProcessor* JUCE_CALLTYPE createPluginFilter()
{
  TestAudioModule *dummy = nullptr; 
  AudioPlugin* plugin = createPaywarePlugin(dummy, TESTPLUGIN, 3);
  plugin->setLicenseDirectory([insert license file directory string here]);
  return plugin;
}

you would then also have to implement the function setLicenseDirectory which should...well...do the obviuos thing (set the corresponding member variable)...and then use that string in the key-checking function

from rs-met.

RobinSchmidt avatar RobinSchmidt commented on June 24, 2024

presets on the other hand are handled by the AudioModule class, which all of your products are subclases of (and then later get "wrapped" into an actual plugin). somewhere in the constructor you have: setActiveDirectory(getApplicationDirectory() + "/TestPlugin");. you would just need to replace this call to change the (default) preset directory

from rs-met.

RobinSchmidt avatar RobinSchmidt commented on June 24, 2024

by the way, the purpose of this AudioModule/AudioPlugin wrapping business is to be able to combine several "Modules" into a single "Plugin" (without having all the host/plugin communication overhead in each module) - like a filter is a module which can be used inside a synth plugin project - but also be wrapped into a plugin by itself - if one so wishes.

from rs-met.

RobinSchmidt avatar RobinSchmidt commented on June 24, 2024

...it also enables hierarchical preset management which is a cool thing for more complex plugins. ...load/save preset for the filter, osc-section, envelope-settings separately, etc.

from rs-met.

RobinSchmidt avatar RobinSchmidt commented on June 24, 2024

...wait no... that plugin->setLicenseDirectory won't work because at this time it might be too late to set it. i have to think about that

from rs-met.

elanhickler avatar elanhickler commented on June 24, 2024

ok, as soon as you can, tell me how I could customize the license directory per operating system per product

from rs-met.

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.