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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String name
      private Integer type
      private ByteArray buffer
      private final Long length
    • Constructor Summary

      Constructors 
      Constructor Description
      AudioEntry(String name, Integer type, ByteArray buffer, Long length)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getName() The name of the audio entry.
      Integer getType() The type of the audio entry.
      Unit setType(Integer type) The type of the audio entry.
      final ByteArray getBuffer() The buffer containing audio data.
      final Unit setBuffer(ByteArray buffer) The buffer containing audio data.
      Long getLength() The length of the audio data.
      final AudioEntry setBuffer(ByteArray buf, Integer offset, Integer len) Sets the audio data buffer with a specific offset and length.
      final Integer length()
      Boolean equals(Object other)
      Integer hashCode()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AudioEntry

        AudioEntry(String name, Integer type, ByteArray buffer, Long length)
    • 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)