Changeset 5945 in josm
- Timestamp:
- 2013-05-08T13:22:46+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/audio/AudioPlayPauseAction.java
r5871 r5945 9 9 10 10 import org.openstreetmap.josm.actions.JosmAction; 11 import org.openstreetmap.josm.gui.layer.markerlayer.AudioMarker; 11 12 import org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer; 12 13 import org.openstreetmap.josm.tools.AudioPlayer; … … 40 41 AudioPlayer.pause(); 41 42 } else { 42 // find first audio marker to play 43 MarkerLayer.playAudio(); 43 // play the last-played marker again, if there is one 44 AudioMarker lastPlayed = AudioMarker.recentlyPlayedMarker(); 45 if (lastPlayed != null) { 46 lastPlayed.play(); 47 } else { 48 // If no marker was played recently, play the first one 49 MarkerLayer.playAudio(); 50 } 44 51 } 45 52 } catch (Exception ex) {
Note:
See TracChangeset
for help on using the changeset viewer.