Package de.mrjulsen.dragnsounds.util
Klasse SoundUtils
java.lang.Object
de.mrjulsen.dragnsounds.util.SoundUtils
-
Feldübersicht
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic long
calculateOggDuration
(byte[] data) Calculates the duration of the OGG audio file.getAudioMetadata
(File file) getAudioMetadata
(InputStream file) static String
getMetaSafe
(Map<String, String> meta, String key) static void
showUploadDialog
(boolean multiselect, Consumer<Optional<Path[]>> callback)
-
Felddetails
-
ACCEPTED_INPUT_AUDIO_FILE_EXTENSIONS
-
-
Konstruktordetails
-
SoundUtils
public SoundUtils()
-
-
Methodendetails
-
getAudioMetadata
-
getAudioMetadata
-
getMetaSafe
-
showUploadDialog
-
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
-