Package org.openstreetmap.josm.io.audio
Class AudioUtil
- java.lang.Object
-
- org.openstreetmap.josm.io.audio.AudioUtil
-
public final class AudioUtil extends java.lang.Object
Utils functions for audio.- Since:
- 12326 (move to new package), 1462
-
-
Constructor Summary
Constructors Modifier Constructor Description privateAudioUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaudioMalfunction(java.lang.Exception ex)Shows a popup audio error message for the given exception.static doublegetCalibratedDuration(java.io.File wavFile)Returns calibrated length of recording in seconds.
-
-
-
Constructor Detail
-
AudioUtil
private AudioUtil()
-
-
Method Detail
-
getCalibratedDuration
public static double getCalibratedDuration(java.io.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(java.lang.Exception ex)
Shows a popup audio error message for the given exception.- Parameters:
ex- The exception used as error reason. Cannot benull.- Since:
- 12328
-
-