wood burning stoves 2.0*
The moose likes Java in General and the fly likes Midi ShortMessage Race Condition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Midi ShortMessage Race Condition" Watch "Midi ShortMessage Race Condition" New topic
Author

Midi ShortMessage Race Condition

james lei
Greenhorn

Joined: Dec 08, 2010
Posts: 5
I find often the MIDI sequencer played volume at 100% instead of 50% if the sequencer didn't completely started before the shortmessage is apply. Will addMetaListener help anyway to prevent race condition?

The seqencer is use to load MIDI file in it.



Will appreciate if there a way for addmetalistener tol execute the shortmessage once the Midi song is startedl
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Midi ShortMessage Race Condition