GVCustomCodecInfo
Information to define a custom codec.
- typedef struct
- {
- int m_samplesPerFrame;
- int m_encodedFrameSize;
- GVBool (*)(GVDecoderData * data) m_newDecoderCallback;
- void (*)(GVDecoderData data) m_freeDecoderCallback;
- void (*)(GVByte * out, const GVSample * in) m_encodeCallback;
- void (*)(GVSample * out, const GVByte * in, GVDecoderData data) m_decodeCallback;
- } GVCustomCodecInfo;
Members
- m_samplesPerFrame
- Number of samples in an unencoded frame.
- m_encodedFrameSize
- Number of bytes in an encoded frame.
- m_newDecoderCallback
- Used to allocate a new decoder instance for each incoming source.
- m_freeDecoderCallback
- Used to free decoder data allocated through m_newDecoderCallback.
- m_encodeCallback
- Used to encode data.
- m_decodeCallback
- Called to decode data. Decode must add to, not set the output.
Section Reference: Gamespy Voice SDK
See Also: gvSetCustomCodec