Browse Source

Minor changes to VST wrapper and StandaloneFilterWindow.

tags/2021-05-28
jules 17 years ago
parent
commit
0d3f72cbb0
2 changed files with 6 additions and 6 deletions
  1. +4
    -4
      extras/audio plugins/wrapper/Standalone/juce_StandaloneFilterWindow.cpp
  2. +2
    -2
      extras/audio plugins/wrapper/VST/juce_VST_Wrapper.cpp

+ 4
- 4
extras/audio plugins/wrapper/Standalone/juce_StandaloneFilterWindow.cpp View File

@@ -81,7 +81,7 @@ StandaloneFilterWindow::StandaloneFilterWindow (const String& title,
if (globalSettings != 0)
{
JUCE_NAMESPACE::MemoryBlock data;
MemoryBlock data;
if (data.fromBase64Encoding (globalSettings->getValue (T("filterState")))
&& data.getSize() > 0)
@@ -130,7 +130,7 @@ StandaloneFilterWindow::~StandaloneFilterWindow()
if (globalSettings != 0 && filter != 0)
{
JUCE_NAMESPACE::MemoryBlock data;
MemoryBlock data;
filter->getStateInformation (data);
globalSettings->setValue (T("filterState"), data.toBase64Encoding());
@@ -185,7 +185,7 @@ void StandaloneFilterWindow::saveState()
if (fc.browseForFileToSave (true))
{
JUCE_NAMESPACE::MemoryBlock data;
MemoryBlock data;
filter->getStateInformation (data);
if (! fc.getResult().replaceWithData (data.getData(), data.getSize()))
@@ -207,7 +207,7 @@ void StandaloneFilterWindow::loadState()
if (fc.browseForFileToOpen())
{
JUCE_NAMESPACE::MemoryBlock data;
MemoryBlock data;
if (fc.getResult().loadFileAsData (data))
{


+ 2
- 2
extras/audio plugins/wrapper/VST/juce_VST_Wrapper.cpp View File

@@ -1003,8 +1003,8 @@ public:
if ((configMono || configStereo) && inCountMatches && outCountMatches)
{
speakerIn = pluginInput->type;
speakerOut = pluginOutput->type;
speakerIn = (VstSpeakerArrangementType) pluginInput->type;
speakerOut = (VstSpeakerArrangementType) pluginOutput->type;
speakerInChans = pluginInput->numChannels;
speakerOutChans = pluginOutput->numChannels;


Loading…
Cancel
Save