Open joachimeichborn opened 4 years ago
I forgot to mention that I have not added the required new mp3-file 0977_modifier_single_track.mp3 as I don't have access to a mac. So this would have to be added while merging the changes.
I already made a pull request to introduce enums for playback modes over a year ago. The code is very poorly readable without. Sadly, it still isn't merged yet.
The new modifier stops playing after the current track has ended, no matter what mode is configured and how many tracks may be left in the folder. The bug in handling duplicate OnPlayFinished events caused that handleNext methods from modifiers were called multiple times. Apart from that, I improved logging and introduced mode and modifiers enums to make the code easier to understand for new developers - and to get a grasp of what is going on myself. With the plain integer numbers that were used previously I found itsometimes confusing because it's not directly visible if the number encodes a mode or a modifier.