Package org.openstreetmap.josm.io.audio
Class AudioUtil
java.lang.Object
org.openstreetmap.josm.io.audio.AudioUtil
Utils functions for audio.
- Since:
- 12326 (move to new package), 1462
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidShows a popup audio error message for the given exception.static doublegetCalibratedDuration(File wavFile) Returns calibrated length of recording in seconds.
-
Constructor Details
-
AudioUtil
private AudioUtil()
-
-
Method Details
-
getCalibratedDuration
Returns calibrated length of recording in seconds.- Parameters:
wavFile- the recording file (WAV format)- Returns:
- the calibrated length of recording in seconds.
-
audioMalfunction
Shows a popup audio error message for the given exception.- Parameters:
ex- The exception used as error reason. Cannot benull.- Since:
- 12328
-