Ignore:
Timestamp:
21.06.2009 12:02:15 (3 years ago)
Author:
stoecker
Message:

fixed audio handling a bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/AudioUtil.java

    r1677 r1685  
    1212import org.openstreetmap.josm.Main; 
    1313 
    14  
    1514/** 
    1615 * Returns calibrated length of recording in seconds. 
     
    2019 */ 
    2120public class AudioUtil { 
    22  
    2321    static public double getCalibratedDuration(File wavFile) { 
    2422        try { 
    2523            AudioInputStream audioInputStream = AudioSystem.getAudioInputStream( 
    26                     new URL("file:".concat(wavFile.getAbsolutePath()))); 
     24                new URL("file:".concat(wavFile.getAbsolutePath()))); 
    2725            AudioFormat audioFormat = audioInputStream.getFormat(); 
    2826            long filesize = wavFile.length(); 
Note: See TracChangeset for help on using the changeset viewer.