1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

Minor changes to VST wrapper and StandaloneFilterWindow.

This commit is contained in:
jules 2009-05-11 15:29:55 +00:00
parent 65e1eabca3
commit 0d3f72cbb0
2 changed files with 6 additions and 6 deletions

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))
{

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;