I am writing code to play music using the Java sound library.
private Sequencer sequencer ; ... void play(Sequence sequence) { sequencer.open() ; sequencer.setSequence(sequence) ; sequencer.start() ;
When I call the playback method 19 times, the sound comes out of my speaker. However, 20 times when I call it, the sound does not come out. This always happens no matter what. I need to restart the program in order to get the sound again.
Is there any workaround? Or somehow debug this? Or in some place can I get support via the MIDI API?
source share