Comments (6)
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.
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.
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.
...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.
...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.
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)
- Discussion: Denoiser made for plucked and metallic sounds
- Need amplitude matching algorithm ASAP HOT 74
- a new matrix implementation HOT 8
- Distinguishing relevant peaks from the irrelevant ones HOT 28
- Need resampling algorithms. HOT 24
- curve fitting (linear and polynomial regression and more) HOT 5
- function plotting code HOT 8
- Additive synthesis efficient sine? HOT 2
- chaotic algorithms and (in)stability HOT 9
- build errors HOT 1
- How do you get frequencies from HarmonicAnalyser harmonics? HOT 11
- on the amplitude gaps in the spectral models HOT 4
- rsShiftForBestMatch not working for whole waveforms HOT 6
- Locating zero-crossings and extrema with subsample precision HOT 1
- new class rsSingleSineModeler HOT 2
- rootMeanSqaure function is giving wrong value
- Need butterworth order 2 highpass filters for LUFS, code is apparently ommitted? HOT 1
- Need help with rsTimeWarper, seems to be warping off-time HOT 3
- RS_DEBUG_BREAK causes crash in non-debug builds HOT 4
- Please make a 64-bit version of FuncShaper
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rs-met.