From beeada6468573f0af0ded83c0f5455f04b07076e Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 14 May 2013 18:19:18 +0100 Subject: [PATCH] Misc fixing --- source/backend/engine/CarlaEngine.cpp | 4 ++-- source/backend/native/audio-base.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/backend/engine/CarlaEngine.cpp b/source/backend/engine/CarlaEngine.cpp index 9f72e2169..1af09f6c8 100644 --- a/source/backend/engine/CarlaEngine.cpp +++ b/source/backend/engine/CarlaEngine.cpp @@ -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; diff --git a/source/backend/native/audio-base.hpp b/source/backend/native/audio-base.hpp index b90e95407..6dd1a6c7e 100644 --- a/source/backend/native/audio-base.hpp +++ b/source/backend/native/audio-base.hpp @@ -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];