History

Merge branch 'master' of https://github.com/highfidelity/hifi into temp1

Sam Gateau committed 12 years ago

Commit c0496fd2 parents d3a7b01 99dd20f55 files · +547 −694Browse files

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

Unified · Split

interface/src/Application.cpp+5−18
@@ -420,7 +420,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 419 unmodified lines
420420 _trayIcon->show();
421421
422422 // set the local loopback interface for local sounds from audio scripts
423− AudioScriptingInterface::getInstance().setLocalLoopbackInterface(&_audio);
423+ AudioScriptingInterface::getInstance().setLocalAudioInterface(&_audio);
424424
425425 #ifdef HAVE_RTMIDI
426426 // setup the MIDIManager
@@ -456,23 +456,22 @@ Application::~Application() { · 29 unmodified lines
456456 // ask the datagram processing thread to quit and wait until it is done
457457 _nodeThread->quit();
458458 _nodeThread->wait();
459+
460+ // kill any audio injectors that are still around
461+ AudioScriptingInterface::getInstance().stopAllInjectors();
459462
460463 // stop the audio process
461464 QMetaObject::invokeMethod(&_audio, "stop");
462−
465+
463466 // ask the audio thread to quit and wait until it is done
464467 _audio.thread()->quit();
465468 _audio.thread()->wait();
466−
467− // kill any audio injectors that are still around
468− AudioScriptingInterface::getInstance().stopAllInjectors();
469469
470470 _octreeProcessor.terminate();
471471 _voxelHideShowThread.terminate();
472472 _voxelEditSender.terminate();
473473 _entityEditSender.terminate();
474474
475−
476475 VoxelTreeElement::removeDeleteHook(&_voxels); // we don't need to do this processing on shutdown
477476 Menu::getInstance()->deleteLater();
478477
@@ -1537,11 +1536,6 @@ void Application::idle() { · 1058 unmodified lines
15371536 _idleLoopStdev.reset();
15381537 }
15391538
1540− if (Menu::getInstance()->isOptionChecked(MenuOption::BuckyBalls)) {
1541− PerformanceTimer perfTimer("buckyBalls");
1542− _buckyBalls.simulate(timeSinceLastUpdate / 1000.f, Application::getInstance()->getAvatar()->getHandData());
1543− }
1544−
15451539 // After finishing all of the above work, restart the idle timer, allowing 2ms to process events.
15461540 idleTimer->start(2);
15471541
@@ -3005,13 +2999,6 @@ void Application::displaySide(Camera& whichCamera, bool selfAvatarOnly) { · 1457 unmodified lines
30052999 _audioReflector.render();
30063000 }
30073001
3008− if (Menu::getInstance()->isOptionChecked(MenuOption::BuckyBalls)) {
3009− PerformanceTimer perfTimer("buckyBalls");
3010− PerformanceWarning warn(Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings),
3011− "Application::displaySide() ... bucky balls...");
3012− _buckyBalls.render();
3013− }
3014−
30153002 // Draw voxels
30163003 if (Menu::getInstance()->isOptionChecked(MenuOption::Voxels)) {
30173004 PerformanceTimer perfTimer("voxels");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t