Package com.iplateia.afplib
Class AudioEntry
-
- All Implemented Interfaces:
-
com.iplateia.afplib.AudioDB.Entry
public final class AudioEntry implements AudioDB.Entry
Represents an actual audio entry for the AudioDB.
-
-
Constructor Summary
Constructors Constructor Description AudioEntry(String name, Integer type, ByteArray buffer, Long length)
-
Method Summary
Modifier and Type Method Description StringgetName()The name of the audio entry. IntegergetType()The type of the audio entry. UnitsetType(Integer type)The type of the audio entry. final ByteArraygetBuffer()The buffer containing audio data. final UnitsetBuffer(ByteArray buffer)The buffer containing audio data. LonggetLength()The length of the audio data. final AudioEntrysetBuffer(ByteArray buf, Integer offset, Integer len)Sets the audio data buffer with a specific offset and length. final Integerlength()Booleanequals(Object other)IntegerhashCode()-
-
Method Detail
-
getName
String getName()
The name of the audio entry.
-
getType
Integer getType()
The type of the audio entry.
-
setType
Unit setType(Integer type)
The type of the audio entry.
-
getBuffer
final ByteArray getBuffer()
The buffer containing audio data.
-
setBuffer
final Unit setBuffer(ByteArray buffer)
The buffer containing audio data.
-
getLength
Long getLength()
The length of the audio data.
-
setBuffer
final AudioEntry setBuffer(ByteArray buf, Integer offset, Integer len)
Sets the audio data buffer with a specific offset and length.
- Parameters:
buf- The source buffer.offset- The offset in the source buffer.len- The number of bytes to copy.- Returns:
This AudioEntry instance.
-
length
final Integer length()
-
equals
Boolean equals(Object other)
-
hashCode
Integer hashCode()
-
-
-
-