Skip to content

Commit

Permalink
Fix PlayerImpl.getMediaTime()
Browse files Browse the repository at this point in the history
  • Loading branch information
shinovon committed May 27, 2024
1 parent c86b28e commit a85eaed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/media/javax/microedition/media/PlayerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@ public long getMediaTime() {
if (sequence instanceof Sequence) {
try {
if (midiSequencer != null)
midiSequencer.getMicrosecondPosition();
midiPosition = midiSequencer.getMicrosecondPosition();
else if (Settings.oneMidiAtTime && EmulatorMIDI.currentPlayer == this && midiPlaying)
return EmulatorMIDI.getMicrosecondPosition();
midiPosition = EmulatorMIDI.getMicrosecondPosition();
} catch (Exception e) {
e.printStackTrace();
}
Expand Down

0 comments on commit a85eaed

Please sign in to comment.