celt_encode

Encodes a frame of audio. @param st Encoder state @param pcm PCM audio in signed 16-bit format (native endian). There must be exactly frame_size samples per channel. @param compressed The compressed data is written here. This may not alias pcm or optional_synthesis. @param nbCompressedBytes Maximum number of bytes to use for compressing the frame (can change from one frame to another) @return Number of bytes written to "compressed". Will be the same as "nbCompressedBytes" unless the stream is VBR and will never be larger. If negative, an error has occurred (see error codes). It is IMPORTANT that the length returned be somehow transmitted to the decoder. Otherwise, no decoding is possible.

extern (C)
int
celt_encode

Meta