Class SimpleAudioInfo
java.lang.Object
de.mrjulsen.dragnsounds.core.ffmpeg.SimpleAudioInfo
- All Implemented Interfaces:
de.mrjulsen.mcdragonlib.data.INBTSerializable
public class SimpleAudioInfo
extends Object
implements de.mrjulsen.mcdragonlib.data.INBTSerializable
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deserializeNbt
(net.minecraft.nbt.CompoundTag nbt) int
long
double
double
int
static SimpleAudioInfo
of
(ws.schild.jave.info.MultimediaInfo info) net.minecraft.nbt.CompoundTag
-
Method Details
-
of
- Parameters:
info
-- Returns:
-
getDuration
public long getDuration()- Returns:
- The playback duration in milliseconds.
-
getDurationSeconds
public double getDurationSeconds()- Returns:
- The playback duration in seconds.
-
getDurationTicks
public double getDurationTicks()- Returns:
- The playback duration in ticks.
-
getBitRate
public int getBitRate() -
getChannels
-
getSampleRate
public int getSampleRate() -
getBitDepth
-
getDecoder
-
serializeNbt
public net.minecraft.nbt.CompoundTag serializeNbt()- Specified by:
serializeNbt
in interfacede.mrjulsen.mcdragonlib.data.INBTSerializable
-
deserializeNbt
public void deserializeNbt(net.minecraft.nbt.CompoundTag nbt) - Specified by:
deserializeNbt
in interfacede.mrjulsen.mcdragonlib.data.INBTSerializable
-