Hoi_A

Jevins Wheel Sound

Aug 28th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. in the winwheel.js file (most likely called winwheel_1.2.js) in the function startSpin(determinedValue) (around line 130) you want
  2. to add following code right below "var stopAngle = undefined;"
  3.  
  4. //
  5.  
  6. var Wheelsound = new Audio('youraudiofile.mp3');
  7. Wheelsound.play();
  8.  
  9. //
  10. the sound file should be in the same directory as the js file
  11.  
  12. that worked for me and should also work for you :) good luck with the wheel.
Advertisement
Add Comment
Please, Sign In to add comment