1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +00:00

Fix for the program count in the introjucer-generated template plugin.

This commit is contained in:
jules 2014-09-29 14:46:57 +01:00
parent df1483fb49
commit 7671e6a350
3 changed files with 6 additions and 4 deletions

View file

@ -346,7 +346,8 @@ static const unsigned char temp_binary_data_6[] =
"\r\n"
"int FILTERCLASSNAME::getNumPrograms()\r\n"
"{\r\n"
" return 0;\r\n"
" return 1; // NB: some hosts don't cope very well if you tell them there are 0 programs,\r\n"
" // so this should be at least 1, even if you're not really implementing programs.\r\n"
"}\r\n"
"\r\n"
"int FILTERCLASSNAME::getCurrentProgram()\r\n"
@ -1235,7 +1236,7 @@ const char* getNamedResource (const char* resourceNameUTF8, int& numBytes) throw
case 0xe8b08520: numBytes = 1050; return colourscheme_light_xml;
case 0x27c5a93a: numBytes = 1008; return jucer_AudioPluginEditorTemplate_cpp;
case 0x4d0721bf: numBytes = 799; return jucer_AudioPluginEditorTemplate_h;
case 0x51b49ac5: numBytes = 4849; return jucer_AudioPluginFilterTemplate_cpp;
case 0x51b49ac5: numBytes = 5028; return jucer_AudioPluginFilterTemplate_cpp;
case 0x488afa0a: numBytes = 2488; return jucer_AudioPluginFilterTemplate_h;
case 0xabad7041: numBytes = 2083; return jucer_ComponentTemplate_cpp;
case 0xfc72fe86: numBytes = 2156; return jucer_ComponentTemplate_h;