Browse Source

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

tags/2021-05-28
jules 9 years ago
parent
commit
7abbf67a1a
2 changed files with 9 additions and 4 deletions
  1. +1
    -3
      extras/Projucer/Source/Project/jucer_ProjectContentComponent.cpp
  2. +8
    -1
      modules/juce_audio_devices/native/juce_ios_Audio.cpp

+ 1
- 3
extras/Projucer/Source/Project/jucer_ProjectContentComponent.cpp 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));
}


+ 8
- 1
modules/juce_audio_devices/native/juce_ios_Audio.cpp 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,


Loading…
Cancel
Save