1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-29 02:40:05 +00:00

Tweaked the iOS audio device to make the default buffer size play in the simulator

This commit is contained in:
jules 2016-06-01 10:33:28 +01:00
parent 61e71eb1dc
commit 7abbf67a1a
2 changed files with 9 additions and 4 deletions

View file

@ -453,9 +453,7 @@ Component* ProjectContentComponent::createBuildTab (CompileEngineChildProcess* c
#else
if (child != nullptr)
{
child->crashHandler = [this] (const String& m) {
this->handleCrash (m);
};
child->crashHandler = [this] (const String& m) { this->handleCrash (m); };
return new BuildTabComponent (child, new ProjucerAppClasses::ErrorListComp (child->errorList));
}

View file

@ -287,7 +287,14 @@ public:
return r;
}
int getDefaultBufferSize() override { return 256; }
int getDefaultBufferSize() override
{
#if TARGET_IPHONE_SIMULATOR
return 512;
#else
return 256;
#endif
}
String open (const BigInteger& inputChannelsWanted,
const BigInteger& outputChannelsWanted,