Interface IAudioEncoderStream


public interface IAudioEncoderStream
Muxer audio stream.
  • Method Summary

    Modifier and Type Method Description
    void encode​(byte[] samples)
    Send audio samples for encoding.
    void encode​(byte[] samples, int offset)
    Send audio samples for encoding.
    int frameBytes()  
  • Method Details

    • encode

      void encode​(byte[] samples)
      Send audio samples for encoding. The length should not exceed frame size returned by frameBytes().
      Parameters:
      samples - byte arrays with samples to send
    • encode

      void encode​(byte[] samples, int offset)
      Send audio samples for encoding. The length should not exceed frame size returned by frameBytes().
      Parameters:
      samples - byte arrays with samples to send
      offset - number of bytes in the beginning of array to skip
    • frameBytes

      int frameBytes()
      Returns:
      audio frame size, in bytes. Audio frame samples sent in encode(byte[]) should have this length (except the last frame that may be shorter).