Package 

Class G729Encoder

    • Method Summary

      Modifier and Type Method Description
      void close() Close the G729 encoder and free resources
      int encode(Array<short> samples, int inOffset, int lenOfSamples, Array<byte> outputData, int outOffset) Encode audio data
      • Methods inherited from class java.lang.Object

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

      • G729Encoder

        G729Encoder()
      • G729Encoder

        G729Encoder(boolean enableVAD)
      • G729Encoder

        G729Encoder(boolean enableVAD, boolean useNativeG729)
    • Method Detail

      • close

         void close()

        Close the G729 encoder and free resources

      • encode

         int encode(Array<short> samples, int inOffset, int lenOfSamples, Array<byte> outputData, int outOffset)

        Encode audio data

        Parameters:
        samples - Input audio data (PCM)
        inOffset - Offset in the output buffer
        outputData - Output buffer for encoded data
        outOffset - Offset in the output buffer