Class 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
      private AudioUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void audioMalfunction​(java.lang.Exception ex)
      Shows a popup audio error message for the given exception.
      static double getCalibratedDuration​(java.io.File wavFile)
      Returns calibrated length of recording in seconds.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 be null.
        Since:
        12328