Browse Source

Added a JucePlugin_RTASDisableMultiMono setting.

tags/2021-05-28
jules 12 years ago
parent
commit
6cba4c505e
4 changed files with 11 additions and 5 deletions
  1. +2
    -0
      extras/Introjucer/Source/Project/jucer_AudioPluginModule.h
  2. +3
    -0
      extras/audio plugin demo/JuceLibraryCode/AppConfig.h
  3. +2
    -5
      modules/juce_audio_formats/codecs/juce_WindowsMediaAudioFormat.cpp
  4. +4
    -0
      modules/juce_audio_plugin_client/RTAS/juce_RTAS_Wrapper.cpp

+ 2
- 0
extras/Introjucer/Source/Project/jucer_AudioPluginModule.h View File

@@ -52,6 +52,7 @@ namespace
Value getPluginAUMainType (Project& project) { return project.getProjectValue ("pluginAUMainType"); } Value getPluginAUMainType (Project& project) { return project.getProjectValue ("pluginAUMainType"); }
Value getPluginRTASCategory (Project& project) { return project.getProjectValue ("pluginRTASCategory"); } Value getPluginRTASCategory (Project& project) { return project.getProjectValue ("pluginRTASCategory"); }
Value getPluginRTASBypassDisabled (Project& project) { return project.getProjectValue ("pluginRTASDisableBypass"); } Value getPluginRTASBypassDisabled (Project& project) { return project.getProjectValue ("pluginRTASDisableBypass"); }
Value getPluginRTASMultiMonoDisabled (Project& project) { return project.getProjectValue ("pluginRTASDisableMultiMono"); }
Value getPluginAAXCategory (Project& project) { return project.getProjectValue ("pluginAAXCategory"); } Value getPluginAAXCategory (Project& project) { return project.getProjectValue ("pluginAAXCategory"); }
Value getPluginAAXBypassDisabled (Project& project) { return project.getProjectValue ("pluginAAXDisableBypass"); } Value getPluginAAXBypassDisabled (Project& project) { return project.getProjectValue ("pluginAAXDisableBypass"); }
@@ -137,6 +138,7 @@ namespace
flags.set ("JucePlugin_RTASManufacturerCode", "JucePlugin_ManufacturerCode"); flags.set ("JucePlugin_RTASManufacturerCode", "JucePlugin_ManufacturerCode");
flags.set ("JucePlugin_RTASProductId", "JucePlugin_PluginCode"); flags.set ("JucePlugin_RTASProductId", "JucePlugin_PluginCode");
flags.set ("JucePlugin_RTASDisableBypass", valueToBool (getPluginRTASBypassDisabled (project))); flags.set ("JucePlugin_RTASDisableBypass", valueToBool (getPluginRTASBypassDisabled (project)));
flags.set ("JucePlugin_RTASDisableMultiMono", valueToBool (getPluginRTASMultiMonoDisabled (project)));
flags.set ("JucePlugin_AAXIdentifier", project.getAAXIdentifier().toString()); flags.set ("JucePlugin_AAXIdentifier", project.getAAXIdentifier().toString());
flags.set ("JucePlugin_AAXManufacturerCode", "JucePlugin_ManufacturerCode"); flags.set ("JucePlugin_AAXManufacturerCode", "JucePlugin_ManufacturerCode");
flags.set ("JucePlugin_AAXProductId", "JucePlugin_PluginCode"); flags.set ("JucePlugin_AAXProductId", "JucePlugin_PluginCode");


+ 3
- 0
extras/audio plugin demo/JuceLibraryCode/AppConfig.h View File

@@ -262,6 +262,9 @@
#ifndef JucePlugin_RTASDisableBypass #ifndef JucePlugin_RTASDisableBypass
#define JucePlugin_RTASDisableBypass 0 #define JucePlugin_RTASDisableBypass 0
#endif #endif
#ifndef JucePlugin_RTASDisableMultiMono
#define JucePlugin_RTASDisableMultiMono 0
#endif
#ifndef JucePlugin_AAXIdentifier #ifndef JucePlugin_AAXIdentifier
#define JucePlugin_AAXIdentifier com.yourcompany.JuceDemoPlugin #define JucePlugin_AAXIdentifier com.yourcompany.JuceDemoPlugin
#endif #endif


+ 2
- 5
modules/juce_audio_formats/codecs/juce_WindowsMediaAudioFormat.cpp View File

@@ -113,7 +113,6 @@ public:
return S_OK; return S_OK;
} }
private: private:
InputStream& source; InputStream& source;
@@ -160,10 +159,7 @@ public:
~WMAudioReader() ~WMAudioReader()
{ {
if (wmSyncReader != nullptr) if (wmSyncReader != nullptr)
{
wmSyncReader->Close(); wmSyncReader->Close();
wmSyncReader = nullptr;
}
} }
bool readSamples (int** destSamples, int numDestChannels, int startOffsetInDestBuffer, bool readSamples (int** destSamples, int numDestChannels, int startOffsetInDestBuffer,
@@ -319,7 +315,8 @@ private:
//============================================================================== //==============================================================================
WindowsMediaAudioFormat::WindowsMediaAudioFormat() WindowsMediaAudioFormat::WindowsMediaAudioFormat()
: AudioFormat (TRANS (WindowsMediaCodec::wmFormatName), StringArray (WindowsMediaCodec::extensions))
: AudioFormat (TRANS (WindowsMediaCodec::wmFormatName),
StringArray (WindowsMediaCodec::extensions))
{ {
} }


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

@@ -945,6 +945,10 @@ public:
type->AddGestalt (pluginGestalt_CanBypass); type->AddGestalt (pluginGestalt_CanBypass);
#endif #endif
#if JucePlugin_RTASDisableMultiMono
type->AddGestalt (pluginGestalt_DoesntSupportMultiMono);
#endif
type->AddGestalt (pluginGestalt_SupportsVariableQuanta); type->AddGestalt (pluginGestalt_SupportsVariableQuanta);
type->AttachEffectProcessCreator (createNewProcess); type->AttachEffectProcessCreator (createNewProcess);


Loading…
Cancel
Save