From 10eb8985f4416315488975a983ccf11f3edf9959 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 20 Dec 2013 15:29:12 -0800 Subject: [PATCH] remove the double catch sound --- interface/src/avatar/Hand.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/src/avatar/Hand.cpp b/interface/src/avatar/Hand.cpp index 136d59bc37..baf66cd3ca 100644 --- a/interface/src/avatar/Hand.cpp +++ b/interface/src/avatar/Hand.cpp @@ -125,12 +125,12 @@ void Hand::simulateToyBall(PalmData& palm, const glm::vec3& fingerTipPosition, f //printf(">>>>>>> caught... handID:%d particle ID:%d _toyBallInHand[handID] = true\n", handID, closestParticle->getID()); _ballParticleEditHandles[handID] = caughtParticle; caughtParticle = NULL; - // Play a catch sound! + + // set the position of the catch sound to the new position of the ball _catchInjector.setPosition(targetPosition); // inject the catch sound to the mixer and play it locally _catchInjector.injectViaThread(app->getAudio()); - app->getAudio()->startDrumSound(1.0, 300, 0.75, 0.015); } }