Package com.zakgof.velvetvideo
Interface IAudioEncoderStream
public interface IAudioEncoderStream
Muxer audio stream.
-
Method Summary
Modifier and Type Method Description voidencode(byte[] samples)Send audio samples for encoding.voidencode(byte[] samples, int offset)Send audio samples for encoding.intframeBytes()
-
Method Details
-
encode
void encode(byte[] samples)Send audio samples for encoding. The length should not exceed frame size returned byframeBytes().- 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 byframeBytes().- Parameters:
samples- byte arrays with samples to sendoffset- 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).
-