Changeset 1685 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2009-06-21T12:02:15+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java
r1245 r1685 190 190 } catch (Exception ex) { 191 191 return null; 192 } 193 } 194 195 public static void reset() { 196 if(audioPlayer != null) 197 { 198 try { 199 pause(); 200 } catch(Exception e) {} 201 audioPlayer.playingUrl = null; 192 202 } 193 203 } -
trunk/src/org/openstreetmap/josm/tools/AudioUtil.java
r1677 r1685 12 12 import org.openstreetmap.josm.Main; 13 13 14 15 14 /** 16 15 * Returns calibrated length of recording in seconds. … … 20 19 */ 21 20 public class AudioUtil { 22 23 21 static public double getCalibratedDuration(File wavFile) { 24 22 try { 25 23 AudioInputStream audioInputStream = AudioSystem.getAudioInputStream( 26 24 new URL("file:".concat(wavFile.getAbsolutePath()))); 27 25 AudioFormat audioFormat = audioInputStream.getFormat(); 28 26 long filesize = wavFile.length();
Note:
See TracChangeset
for help on using the changeset viewer.