History

Fixes per review

Philip Rosedale committed 13 years ago

Commit d5a0b2f1 parent 43ad4611 file · +4 −3Browse files

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

Unified · Split

interface/src/Application.cpp+4−3
@@ -956,9 +956,10 @@ void Application::mousePressEvent(QMouseEvent* event) { · 955 unmodified lines
956 const float GREEN_CLICK_FREQUENCY = 1250.f;956 const float GREEN_CLICK_FREQUENCY = 1250.f;
957 const float BLUE_CLICK_FREQUENCY = 1330.f;957 const float BLUE_CLICK_FREQUENCY = 1330.f;
958 const float MIDDLE_A_FREQUENCY = 440.f;958 const float MIDDLE_A_FREQUENCY = 440.f;
959 float frequency = MIDDLE_A_FREQUENCY + ((float)_hoverVoxel.red / 255.f * RED_CLICK_FREQUENCY +959 float frequency = MIDDLE_A_FREQUENCY
960 (float)_hoverVoxel.green / 255.f * GREEN_CLICK_FREQUENCY +960 + (_hoverVoxel.red / 255.f * RED_CLICK_FREQUENCY +
961 (float)_hoverVoxel.blue / 255.f * BLUE_CLICK_FREQUENCY) / 3.f;961 _hoverVoxel.green / 255.f * GREEN_CLICK_FREQUENCY +
962 _hoverVoxel.blue / 255.f * BLUE_CLICK_FREQUENCY) / 3.f;
962 963
963 _audio.startCollisionSound(1.0, frequency, 0.0, HOVER_VOXEL_DECAY);964 _audio.startCollisionSound(1.0, frequency, 0.0, HOVER_VOXEL_DECAY);
964 _isHoverVoxelSounding = true;965 _isHoverVoxelSounding = true;

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