mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Clarified the example code that's generated in the plugin template process method.
This commit is contained in:
parent
e12823a10f
commit
a323d4d797
3 changed files with 20 additions and 18 deletions
|
|
@ -382,6 +382,15 @@ static const unsigned char temp_binary_data_6[] =
|
|||
"\r\n"
|
||||
"void FILTERCLASSNAME::processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages)\r\n"
|
||||
"{\r\n"
|
||||
" // In case we have more outputs than inputs, this code clears any output\r\n"
|
||||
" // channels that didn't contain input data, (because these aren't\r\n"
|
||||
" // guaranteed to be empty - they may contain garbage).\r\n"
|
||||
" // I've added this to avoid people getting screaming feedback\r\n"
|
||||
" // when they first compile the plugin, but obviously you don't need to\r\n"
|
||||
" // this code if your algorithm already fills all the output channels.\r\n"
|
||||
" for (int i = getNumInputChannels(); i < getNumOutputChannels(); ++i)\r\n"
|
||||
" buffer.clear (i, 0, buffer.getNumSamples());\r\n"
|
||||
"\r\n"
|
||||
" // This is the place where you'd normally do the guts of your plugin's\r\n"
|
||||
" // audio processing...\r\n"
|
||||
" for (int channel = 0; channel < getNumInputChannels(); ++channel)\r\n"
|
||||
|
|
@ -390,14 +399,6 @@ static const unsigned char temp_binary_data_6[] =
|
|||
"\r\n"
|
||||
" // ..do something to the data...\r\n"
|
||||
" }\r\n"
|
||||
"\r\n"
|
||||
" // In case we have more outputs than inputs, we'll clear any output\r\n"
|
||||
" // channels that didn't contain input data, (because these aren't\r\n"
|
||||
" // guaranteed to be empty - they may contain garbage).\r\n"
|
||||
" for (int i = getNumInputChannels(); i < getNumOutputChannels(); ++i)\r\n"
|
||||
" {\r\n"
|
||||
" buffer.clear (i, 0, buffer.getNumSamples());\r\n"
|
||||
" }\r\n"
|
||||
"}\r\n"
|
||||
"\r\n"
|
||||
"//==============================================================================\r\n"
|
||||
|
|
@ -1234,7 +1235,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 = 4640; return jucer_AudioPluginFilterTemplate_cpp;
|
||||
case 0x51b49ac5: numBytes = 4849; 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue