History

intial removal of Audio to audio-client

Stephen Birarda committed 11 years ago

Commit 0eced091 parent 57743f128 files · +1048 −143Browse files

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

Unified · Split

interface/src/Application.cpp+7−7
@@ -162,7 +162,7 @@ bool setupEssentials(int& argc, char** argv) { · 161 unmodified lines
162162 auto geometryCache = DependencyManager::set<GeometryCache>();
163163 auto glowEffect = DependencyManager::set<GlowEffect>();
164164 auto faceshift = DependencyManager::set<Faceshift>();
165− auto audio = DependencyManager::set<Audio>();
165+ auto audio = DependencyManager::set<AudioClient>();
166166 auto audioScope = DependencyManager::set<AudioScope>();
167167 auto audioIOStatsRenderer = DependencyManager::set<AudioIOStatsRenderer>();
168168 auto deferredLightingEffect = DependencyManager::set<DeferredLightingEffect>();
@@ -278,9 +278,9 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 109 unmodified lines
278278 // put the audio processing on a separate thread
279279 QThread* audioThread = new QThread(this);
280280
281− auto audioIO = DependencyManager::get<Audio>();
281+ auto audioIO = DependencyManager::get<AudioClient>();
282282 audioIO->moveToThread(audioThread);
283− connect(audioThread, &QThread::started, audioIO.data(), &Audio::start);
283+ connect(audioThread, &QThread::started, audioIO.data(), &AudioClient::start);
284284
285285 audioThread->start();
286286
@@ -476,7 +476,7 @@ Application::~Application() { · 189 unmodified lines
476476 // kill any audio injectors that are still around
477477 AudioScriptingInterface::getInstance().stopAllInjectors();
478478
479− auto audioIO = DependencyManager::get<Audio>();
479+ auto audioIO = DependencyManager::get<AudioClient>();
480480
481481 // stop the audio process
482482 QMetaObject::invokeMethod(audioIO.data(), "stop", Qt::BlockingQueuedConnection);
@@ -2117,7 +2117,7 @@ void Application::update(float deltaTime) { · 1634 unmodified lines
21172117 if (sinceLastNack > TOO_LONG_SINCE_LAST_SEND_DOWNSTREAM_AUDIO_STATS) {
21182118 _lastSendDownstreamAudioStats = now;
21192119
2120− QMetaObject::invokeMethod(DependencyManager::get<Audio>().data(), "sendDownstreamAudioStatsPacket", Qt::QueuedConnection);
2120+ QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "sendDownstreamAudioStatsPacket", Qt::QueuedConnection);
21212121 }
21222122 }
21232123 }
@@ -3113,7 +3113,7 @@ void Application::resetSensors() { · 989 unmodified lines
31133113
31143114 _myAvatar->reset();
31153115
3116− QMetaObject::invokeMethod(DependencyManager::get<Audio>().data(), "reset", Qt::QueuedConnection);
3116+ QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "reset", Qt::QueuedConnection);
31173117 }
31183118
31193119 static void setShortcutsEnabled(QWidget* widget, bool enabled) {
@@ -3253,7 +3253,7 @@ void Application::nodeKilled(SharedNodePointer node) { · 133 unmodified lines
32533253 _entityEditSender.nodeKilled(node);
32543254
32553255 if (node->getType() == NodeType::AudioMixer) {
3256− QMetaObject::invokeMethod(DependencyManager::get<Audio>().data(), "audioMixerKilled");
3256+ QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "audioMixerKilled");
32573257 }
32583258
32593259 if (node->getType() == NodeType::EntityServer) {

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