celt_encode_resynthesis

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 optional_resynthesis If not NULL, the encoder copies the audio signal that the decoder would decode. It is the same as calling the decoder on the compressed data, just faster. This may alias pcm. @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_resynthesis

Meta