History

hookup previous mouse press for mute to AudioToolBox

Stephen Birarda committed 11 years ago

Commit eb790af1 parent 0fae6992 files · +8 −9Browse files

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

Unified · Split

interface/src/Application.cpp+7−9
@@ -77,6 +77,8 @@ · 76 unmodified lines
7777 #include "ModelUploader.h"
7878 #include "Util.h"
7979
80+#include "audio/AudioToolBox.h"
81+
8082 #include "devices/DdeFaceTracker.h"
8183 #include "devices/Faceshift.h"
8284 #include "devices/Leapmotion.h"
@@ -1295,11 +1297,10 @@ void Application::mousePressEvent(QMouseEvent* event, unsigned int deviceID) { · 1212 unmodified lines
12951297 _mousePressed = true;
12961298
12971299 if (mouseOnScreen()) {
1298− // TODO: MOVE THE AUDIO CONTROLS TO SEP OBJECT
1299−// if (_audio.mousePressEvent(getMouseX(), getMouseY())) {
1300−// // stop propagation
1301−// return;
1302−// }
1300+ if (DependencyManager::get<AudioToolBox>()->mousePressEvent(getMouseX(), getMouseY())) {
1301+ // stop propagation
1302+ return;
1303+ }
13031304
13041305 if (_rearMirrorTools->mousePressEvent(getMouseX(), getMouseY())) {
13051306 // stop propagation
@@ -2019,10 +2020,7 @@ void Application::init() { · 713 unmodified lines
20192020 _entityClipboardRenderer.setTree(&_entityClipboard);
20202021
20212022 _metavoxels.init();
2022−
2023− // TODO: MOVE AUDIO CONTROLS TO SEP OBJECT
2024−// _audio.init(_glWidget);
2025−
2023+
20262024 _rearMirrorTools = new RearMirrorTools(_glWidget, _mirrorViewRect, _settings);
20272025
20282026 connect(_rearMirrorTools, SIGNAL(closeView()), SLOT(closeMirrorView()));

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