Browse Source

Misc fixing

tags/1.9.4
falkTX 11 years ago
parent
commit
beeada6468
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      source/backend/engine/CarlaEngine.cpp
  2. +1
    -1
      source/backend/native/audio-base.hpp

+ 2
- 2
source/backend/engine/CarlaEngine.cpp View File

@@ -1248,7 +1248,7 @@ bool CarlaEngine::loadFilename(const char* const filename)
if (addPlugin(PLUGIN_INTERNAL, nullptr, baseName, "audiofile"))
{
if (CarlaPlugin* const plugin = getPlugin(kData->curPluginCount-1))
plugin->setCustomData(CUSTOM_DATA_STRING, "file00", filename, true);
plugin->setCustomData(CUSTOM_DATA_STRING, "file", filename, true);
return true;
}
return false;
@@ -1266,7 +1266,7 @@ bool CarlaEngine::loadFilename(const char* const filename)
if (addPlugin(PLUGIN_INTERNAL, nullptr, baseName, "audiofile"))
{
if (CarlaPlugin* const plugin = getPlugin(kData->curPluginCount-1))
plugin->setCustomData(CUSTOM_DATA_STRING, "file00", filename, true);
plugin->setCustomData(CUSTOM_DATA_STRING, "file", filename, true);
return true;
}
return false;


+ 1
- 1
source/backend/native/audio-base.hpp View File

@@ -53,7 +53,7 @@ struct AudioFilePool {
CARLA_ASSERT(startFrame == 0);
CARLA_ASSERT(size == 0);

size = sampleRate * 6;
size = sampleRate * 2;

buffer[0] = new float[size];
buffer[1] = new float[size];


Loading…
Cancel
Save