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:
parent
65e1eabca3
commit
0d3f72cbb0
2 changed files with 6 additions and 6 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue