Browse Source

Added an assertion to help catch RTAS misuse.

tags/2021-05-28
jules 13 years ago
parent
commit
e6f3788bc3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/juce_audio_plugin_client/RTAS/juce_RTAS_Wrapper.cpp

+ 3
- 0
modules/juce_audio_plugin_client/RTAS/juce_RTAS_Wrapper.cpp View File

@@ -855,6 +855,9 @@ private:
void GetNameOfLength (char* name, int maxLength, OSType inControllerType) const void GetNameOfLength (char* name, int maxLength, OSType inControllerType) const
{ {
// Pro-tools expects all your parameters to have valid names!
jassert (juceFilter->getParameterName (index).isNotEmpty());
juceFilter->getParameterName (index).copyToUTF8 (name, maxLength); juceFilter->getParameterName (index).copyToUTF8 (name, maxLength);
} }


Loading…
Cancel
Save