Ignore:
Timestamp:
2013-04-15T23:12:33+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8611 (audio slower broken) + update all audio javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/ImportAudioAction.java

    r5715 r5871  
    3131import static org.openstreetmap.josm.tools.I18n.tr;
    3232
     33/**
     34 * Import audio files into a GPX layer to enable audio playback functions.
     35 * @since 5715
     36 */
    3337public class ImportAudioAction extends AbstractAction {
    3438    private final GpxLayer layer;
     
    3943    }
    4044
     45    /**
     46     * Constructs a new {@code ImportAudioAction}.
     47     * @param layer The associated GPX layer
     48     */
    4149    public ImportAudioAction(final GpxLayer layer) {
    4250        super(tr("Import Audio"), ImageProvider.get("importaudio"));
     
    105113    }
    106114   
    107         /**
     115    /**
    108116     * Makes a new marker layer derived from this GpxLayer containing at least one audio marker
    109117     * which the given audio file is associated with. Markers are derived from the following (a)
     
    213221            double startTime = lastModified - duration;
    214222            startTime = firstStartTime + (startTime - firstStartTime)
    215                     / Main.pref.getDouble("audio.calibration", "1.0" /* default, ratio */);
     223                    / Main.pref.getDouble("audio.calibration", 1.0 /* default, ratio */);
    216224            WayPoint w1 = null;
    217225            WayPoint w2 = null;
     
    314322        }
    315323    }
    316 
    317    
    318324}
Note: See TracChangeset for help on using the changeset viewer.