mayacakmak / emarsoftware

Front end tools for designing robot faces, setting up custom robot APIs, and controlling a robot (WoZ)
BSD 2-Clause "Simplified" License
2 stars 11 forks source link

Make playSound sequential #89

Closed tonyli1 closed 2 years ago

tonyli1 commented 2 years ago

Added async compatibility with sounds, and have sounds wait until the "callback" of resetting the robot's sound index to -1 before playing the next sound.

This fixes the error of some sounds getting skipped in EUP and also makes sure sounds don't overlap with each other.

Before (current version in prod): https://drive.google.com/file/d/1G9AQQykThLrUwOjrecW82FC00d6pF9Bv/view?usp=sharing With changes: https://drive.google.com/file/d/1Wc1AjrxTthAiKMg0Ed10lITk0fMAWKi8/view?usp=sharing