Changeset 9144 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2015-12-24T22:59:04+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java
r9078 r9144 120 120 * start at the beginning of the stream 121 121 * @param url The resource to play, which must be a WAV file or stream 122 * @throws Exception audio fault exception, e.g. can't open stream, 122 * @throws Exception audio fault exception, e.g. can't open stream, unhandleable audio format 123 123 */ 124 124 public static void play(URL url) throws Exception { … … 130 130 * @param url The resource to play, which must be a WAV file or stream 131 131 * @param seconds The number of seconds into the audio to start playing 132 * @throws Exception audio fault exception, e.g. can't open stream, 132 * @throws Exception audio fault exception, e.g. can't open stream, unhandleable audio format 133 133 */ 134 134 public static void play(URL url, double seconds) throws Exception { -
trunk/src/org/openstreetmap/josm/tools/AudioUtil.java
r7037 r9144 41 41 return naturalLength / calibration; 42 42 } catch (UnsupportedAudioFileException | IOException e) { 43 if (Main.isDebugEnabled()) { 44 Main.debug(e.getMessage()); 45 } 43 46 return 0.0; 44 47 }
Note:
See TracChangeset
for help on using the changeset viewer.