xfjx / TonUINO

Die DIY Musikbox (nicht nur) für Kinder
https://www.voss.earth/tonuino/
GNU General Public License v3.0
449 stars 404 forks source link

Fixed bug 76: handleNext method of active modifier is not called twice anymore if a duplicate OnPlayFinished event is received #77

Closed joachimeichborn closed 3 years ago

joachimeichborn commented 4 years ago

This fixes issue #76. The check whether the ended track is similar to the last ended track was moved into the OnPlayFinished method. This has the additinal benefit, that no tack number is required as input for nextTrack. So we don't have to come up with a random one if the next button is pressed.