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
-
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.
-
-
-
-