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 Details

    • of

      public static SimpleAudioInfo of(ws.schild.jave.info.MultimediaInfo info)
      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

      public EChannels getChannels()
    • getSampleRate

      public int getSampleRate()
    • getBitDepth

      public String getBitDepth()
    • getDecoder

      public String getDecoder()
    • serializeNbt

      public net.minecraft.nbt.CompoundTag serializeNbt()
      Specified by:
      serializeNbt in interface de.mrjulsen.mcdragonlib.data.INBTSerializable
    • deserializeNbt

      public void deserializeNbt(net.minecraft.nbt.CompoundTag nbt)
      Specified by:
      deserializeNbt in interface de.mrjulsen.mcdragonlib.data.INBTSerializable