Klasse SoundUtils

java.lang.Object
de.mrjulsen.dragnsounds.util.SoundUtils

public class SoundUtils extends Object
  • Felddetails

    • ACCEPTED_INPUT_AUDIO_FILE_EXTENSIONS

      public static final String[] ACCEPTED_INPUT_AUDIO_FILE_EXTENSIONS
  • Konstruktordetails

    • SoundUtils

      public SoundUtils()
  • Methodendetails

    • getAudioMetadata

      public static Map<String,String> getAudioMetadata(File file)
    • getAudioMetadata

      public static Map<String,String> getAudioMetadata(InputStream file)
    • getMetaSafe

      public static String getMetaSafe(Map<String,String> meta, String key)
    • showUploadDialog

      public static void showUploadDialog(boolean multiselect, Consumer<Optional<Path[]>> callback)
    • calculateOggDuration

      public static long calculateOggDuration(byte[] data)
      Calculates the duration of the OGG audio file.
      Parameter:
      data - The OGG audio file data
      Gibt zurück:
      The playback duration in milliseconds