mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-06 04:00:08 +00:00
Projucer: Added code to handle JucePlugin_IsMidiEffect in the new audio plug-in template
This commit is contained in:
parent
c68838cecc
commit
75c299025a
4 changed files with 24 additions and 4 deletions
|
|
@ -1540,6 +1540,15 @@ static const unsigned char temp_binary_data_8[] =
|
|||
" #endif\r\n"
|
||||
"}\r\n"
|
||||
"\r\n"
|
||||
"bool FILTERCLASSNAME::isMidiEffect () const\r\n"
|
||||
"{\r\n"
|
||||
" #ifdef JucePlugin_IsMidiEffect\r\n"
|
||||
" return true;\r\n"
|
||||
" #else\r\n"
|
||||
" return false;\r\n"
|
||||
" #endif\r\n"
|
||||
"}\r\n"
|
||||
"\r\n"
|
||||
"double FILTERCLASSNAME::getTailLengthSeconds() const\r\n"
|
||||
"{\r\n"
|
||||
" return 0.0;\r\n"
|
||||
|
|
@ -1710,6 +1719,7 @@ static const unsigned char temp_binary_data_9[] =
|
|||
"\r\n"
|
||||
" bool acceptsMidi() const override;\r\n"
|
||||
" bool producesMidi() const override;\r\n"
|
||||
" bool isMidiEffect () const override;\r\n"
|
||||
" double getTailLengthSeconds() const override;\r\n"
|
||||
"\r\n"
|
||||
" //==============================================================================\r\n"
|
||||
|
|
@ -7018,8 +7028,8 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw
|
|||
case 0xafccbd3f: numBytes = 3141; return jucer_AudioComponentTemplate_cpp;
|
||||
case 0x27c5a93a: numBytes = 1310; return jucer_AudioPluginEditorTemplate_cpp;
|
||||
case 0x4d0721bf: numBytes = 938; return jucer_AudioPluginEditorTemplate_h;
|
||||
case 0x51b49ac5: numBytes = 5469; return jucer_AudioPluginFilterTemplate_cpp;
|
||||
case 0x488afa0a: numBytes = 2203; return jucer_AudioPluginFilterTemplate_h;
|
||||
case 0x51b49ac5: numBytes = 5615; return jucer_AudioPluginFilterTemplate_cpp;
|
||||
case 0x488afa0a: numBytes = 2245; return jucer_AudioPluginFilterTemplate_h;
|
||||
case 0xabad7041: numBytes = 2151; return jucer_ComponentTemplate_cpp;
|
||||
case 0xfc72fe86: numBytes = 2064; return jucer_ComponentTemplate_h;
|
||||
case 0x0b66646c: numBytes = 1029; return jucer_ContentCompTemplate_cpp;
|
||||
|
|
|
|||
|
|
@ -33,10 +33,10 @@ namespace BinaryData
|
|||
const int jucer_AudioPluginEditorTemplate_hSize = 938;
|
||||
|
||||
extern const char* jucer_AudioPluginFilterTemplate_cpp;
|
||||
const int jucer_AudioPluginFilterTemplate_cppSize = 5469;
|
||||
const int jucer_AudioPluginFilterTemplate_cppSize = 5615;
|
||||
|
||||
extern const char* jucer_AudioPluginFilterTemplate_h;
|
||||
const int jucer_AudioPluginFilterTemplate_hSize = 2203;
|
||||
const int jucer_AudioPluginFilterTemplate_hSize = 2245;
|
||||
|
||||
extern const char* jucer_ComponentTemplate_cpp;
|
||||
const int jucer_ComponentTemplate_cppSize = 2151;
|
||||
|
|
|
|||
|
|
@ -54,6 +54,15 @@ bool FILTERCLASSNAME::producesMidi() const
|
|||
#endif
|
||||
}
|
||||
|
||||
bool FILTERCLASSNAME::isMidiEffect () const
|
||||
{
|
||||
#ifdef JucePlugin_IsMidiEffect
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
double FILTERCLASSNAME::getTailLengthSeconds() const
|
||||
{
|
||||
return 0.0;
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ public:
|
|||
|
||||
bool acceptsMidi() const override;
|
||||
bool producesMidi() const override;
|
||||
bool isMidiEffect () const override;
|
||||
double getTailLengthSeconds() const override;
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue