This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
Carla
mirror of
https://github.com/falkTX/Carla
Watch
1
Star
0
Fork
0
Code
Releases
42
Activity
Browse Source
Gracefully handle when a plugin refuses to init 2nd instance
tags/1.9.4
falkTX
11 years ago
parent
04b877178d
commit
9071dfbb8f
4 changed files
with
44 additions
and
32 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+11
-8
source/backend/plugin/DssiPlugin.cpp
+11
-8
source/backend/plugin/LadspaPlugin.cpp
+11
-8
source/backend/plugin/Lv2Plugin.cpp
+11
-8
source/backend/plugin/NativePlugin.cpp
+ 11
- 8
source/backend/plugin/DssiPlugin.cpp
View File
@@ -461,16 +461,19 @@ public:
if (fHandle2 == nullptr)
fHandle2 = fDescriptor->instantiate(fDescriptor, (unsigned long)sampleRate);
if (
aIns == 1
)
if (
fHandle2 != nullptr
)
{
aIns = 2;
forcedStereoIn = true;
}
if (aIns == 1)
{
aIns = 2;
forcedStereoIn = true;
}
if (aOuts == 1)
{
aOuts = 2;
forcedStereoOut = true;
if (aOuts == 1)
{
aOuts = 2;
forcedStereoOut = true;
}
}
}
+ 11
- 8
source/backend/plugin/LadspaPlugin.cpp
View File
@@ -453,16 +453,19 @@ public:
if (fHandle2 == nullptr)
fHandle2 = fDescriptor->instantiate(fDescriptor, (unsigned long)sampleRate);
if (
aIns == 1
)
if (
fHandle2 != nullptr
)
{
aIns = 2;
forcedStereoIn = true;
}
if (aIns == 1)
{
aIns = 2;
forcedStereoIn = true;
}
if (aOuts == 1)
{
aOuts = 2;
forcedStereoOut = true;
if (aOuts == 1)
{
aOuts = 2;
forcedStereoOut = true;
}
}
}
+ 11
- 8
source/backend/plugin/Lv2Plugin.cpp
View File
@@ -1400,16 +1400,19 @@ public:
if (fHandle2 == nullptr)
fHandle2 = fDescriptor->instantiate(fDescriptor, sampleRate, fRdfDescriptor->Bundle, fFeatures);
if (
aIns == 1
)
if (
fHandle2 != nullptr
)
{
aIns = 2;
forcedStereoIn = true;
}
if (aIns == 1)
{
aIns = 2;
forcedStereoIn = true;
}
if (aOuts == 1)
{
aOuts = 2;
forcedStereoOut = true;
if (aOuts == 1)
{
aOuts = 2;
forcedStereoOut = true;
}
}
}
+ 11
- 8
source/backend/plugin/NativePlugin.cpp
View File
@@ -788,16 +788,19 @@ public:
if (fHandle2 == nullptr)
fHandle2 = fDescriptor->instantiate(fDescriptor, &fHost);
if (
aIns == 1
)
if (
fHandle2 != nullptr
)
{
aIns = 2;
forcedStereoIn = true;
}
if (aIns == 1)
{
aIns = 2;
forcedStereoIn = true;
}
if (aOuts == 1)
{
aOuts = 2;
forcedStereoOut = true;
if (aOuts == 1)
{
aOuts = 2;
forcedStereoOut = true;
}
}
}
Write
Preview
Loading…
Cancel
Save