Skip to content

Sound Triggering

Compare
Choose a tag to compare
@zarocknz zarocknz released this 03 Jan 02:23
· 13 commits to master since this release
46b9671

The main new feature of this release is the ability to specify a soundTrigger callback for animations. Change of segment or change of pin under the pointer can cause the trigger. The callback function can then play a sound such as a "tick" sound.

Other changes and fixes this release...

  • Animation can now have functions as callbacks and the callback finished passes the winning segment in (thanks LorisZ )
  • Converted all examples to use the new function callback.
  • Fixed bug where the defaults for the SpinOngoing animation were not as stated in examples or the docs.
  • Added Continuously spinning wheel example.
  • Added Pins and Sound wheel example.