Package org.openstreetmap.josm.io.audio
Class AudioUtil
- java.lang.Object
-
- org.openstreetmap.josm.io.audio.AudioUtil
-
-
Constructor Summary
Constructors Modifier Constructor Description private
AudioUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
audioMalfunction(Exception ex)
Shows a popup audio error message for the given exception.static double
getCalibratedDuration(File wavFile)
Returns calibrated length of recording in seconds.
-
-
-
Constructor Detail
-
AudioUtil
private AudioUtil()
-
-
Method Detail
-
getCalibratedDuration
public static double getCalibratedDuration(File wavFile)
Returns calibrated length of recording in seconds.- Parameters:
wavFile
- the recording file (WAV format)- Returns:
- the calibrated length of recording in seconds.
-
audioMalfunction
public static void audioMalfunction(Exception ex)
Shows a popup audio error message for the given exception.- Parameters:
ex
- The exception used as error reason. Cannot benull
.- Since:
- 12328
-
-