Changeset 1685 in josm for trunk/src/org/openstreetmap/josm/tools/AudioUtil.java
- Timestamp:
- 21.06.2009 12:02:15 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 new URL("file:".concat(wavFile.getAbsolutePath())));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.
