Record Class AudioSettings
java.lang.Object
java.lang.Record
de.mrjulsen.dragnsounds.core.ffmpeg.AudioSettings
-
Constructor Summary
ConstructorDescriptionAudioSettings
(EChannels channels, int bitRate, int samplingRate, byte quality) Creates an instance of aAudioSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
bitRate()
Returns the value of thebitRate
record component.channels()
Returns the value of thechannels
record component.final boolean
Indicates whether some other object is "equal to" this one.static AudioSettings
fromNbt
(net.minecraft.nbt.CompoundTag nbt) static AudioSettings
final int
hashCode()
Returns a hash code value for this object.byte
quality()
Returns the value of thequality
record component.int
Returns the value of thesamplingRate
record component.net.minecraft.nbt.CompoundTag
toNbt()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AudioSettings
Creates an instance of aAudioSettings
record class.- Parameters:
channels
- the value for thechannels
record componentbitRate
- the value for thebitRate
record componentsamplingRate
- the value for thesamplingRate
record componentquality
- the value for thequality
record component
-
-
Method Details
-
getByFile
public static AudioSettings getByFile(String path) throws ws.schild.jave.InputFormatException, ws.schild.jave.EncoderException - Throws:
ws.schild.jave.InputFormatException
ws.schild.jave.EncoderException
-
toNbt
public net.minecraft.nbt.CompoundTag toNbt() -
fromNbt
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
channels
Returns the value of thechannels
record component.- Returns:
- the value of the
channels
record component
-
bitRate
public int bitRate()Returns the value of thebitRate
record component.- Returns:
- the value of the
bitRate
record component
-
samplingRate
public int samplingRate()Returns the value of thesamplingRate
record component.- Returns:
- the value of the
samplingRate
record component
-
quality
public byte quality()Returns the value of thequality
record component.- Returns:
- the value of the
quality
record component
-