History

first round of requested changes

Dante Ruiz committed 8 years ago

Commit 5c9a8881 parent de5a0a77 files · +42 −57Browse files

Showing the changes to interface/src/Application.cpp (1 of 7 files). Show all

Unified · Split

interface/src/Application.cpp+4−3
@@ -1387,7 +1387,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1386 unmodified lines
13871387 });
13881388 connect(this, &Application::activeDisplayPluginChanged,
13891389 reinterpret_cast<scripting::Audio*>(audioScriptingInterface.data()), &scripting::Audio::onContextChanged);
1390− connect(this, &Application::interstitialModeChanged, audioIO, &AudioClient::setInterstitialStatus);
13911390 }
13921391
13931392 // Create the rendering engine. This can be slow on some machines due to lots of
@@ -3500,6 +3499,9 @@ bool Application::isInterstitialMode() const { · 2106 unmodified lines
35003499 void Application::setIsInterstitialMode(bool interstitialMode) {
35013500 if (_interstitialMode != interstitialMode) {
35023501 _interstitialMode = interstitialMode;
3502+
3503+ auto audioClient = DependencyManager::get<AudioClient>();
3504+ audioClient->setAudioPaused(_interstitialMode);
35033505 emit interstitialModeChanged(_interstitialMode);
35043506 }
35053507 }
@@ -5581,8 +5583,7 @@ void Application::update(float deltaTime) { · 2075 unmodified lines
55815583 // we haven't yet enabled physics. we wait until we think we have all the collision information
55825584 // for nearby entities before starting bullet up.
55835585 quint64 now = usecTimestampNow();
5584− bool renderReady = _octreeProcessor.isEntitiesRenderReady();
5585− if (isServerlessMode() || (_octreeProcessor.isLoadSequenceComplete() && renderReady)) {
5586+ if (isServerlessMode() || _octreeProcessor.isLoadSequenceComplete()) {
55865587 // we've received a new full-scene octree stats packet, or it's been long enough to try again anyway
55875588 _lastPhysicsCheckTime = now;
55885589 _fullSceneCounterAtLastPhysicsCheck = _fullSceneReceivedCounter;