encode_voice_eot

Function encode_voice_eot 

Source
pub fn encode_voice_eot(
    out: &mut [u8],
    stream_id: StreamId,
    seq: u8,
) -> Result<usize, EncodeError>
Expand description

Encode a 27-byte voice EOT packet.

Same shape as encode_voice_data but:

§Errors

Returns EncodeError::BufferTooSmall if out.len() < 27.

§See also

ircDDBGateway/Common/AMBEData.cpp:317-345 — the getDExtraData encoder produces the same 27-byte layout regardless of isEnd(); the caller is expected to set m_outSeq |= 0x40 and fill m_data with silence + sync bytes before invoking it.