Changeset 5871 in josm for trunk/src/org/openstreetmap/josm/gui/layer/gpx/ImportAudioAction.java
- Timestamp:
- 2013-04-15T23:12:33+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/gpx/ImportAudioAction.java
r5715 r5871 31 31 import static org.openstreetmap.josm.tools.I18n.tr; 32 32 33 /** 34 * Import audio files into a GPX layer to enable audio playback functions. 35 * @since 5715 36 */ 33 37 public class ImportAudioAction extends AbstractAction { 34 38 private final GpxLayer layer; … … 39 43 } 40 44 45 /** 46 * Constructs a new {@code ImportAudioAction}. 47 * @param layer The associated GPX layer 48 */ 41 49 public ImportAudioAction(final GpxLayer layer) { 42 50 super(tr("Import Audio"), ImageProvider.get("importaudio")); … … 105 113 } 106 114 107 115 /** 108 116 * Makes a new marker layer derived from this GpxLayer containing at least one audio marker 109 117 * which the given audio file is associated with. Markers are derived from the following (a) … … 213 221 double startTime = lastModified - duration; 214 222 startTime = firstStartTime + (startTime - firstStartTime) 215 / Main.pref.getDouble("audio.calibration", "1.0"/* default, ratio */);223 / Main.pref.getDouble("audio.calibration", 1.0 /* default, ratio */); 216 224 WayPoint w1 = null; 217 225 WayPoint w2 = null; … … 314 322 } 315 323 } 316 317 318 324 }
Note:
See TracChangeset
for help on using the changeset viewer.