pub fn encode_voice_eot(
out: &mut [u8],
stream_id: StreamId,
seq: u8,
) -> Result<usize, EncodeError>Expand description
Encode a 32-byte voice EOT packet.
Layout per ircDDBGateway/Common/AMBEData.cpp:380-388
(getDPlusData isEnd branch):
- same as
encode_voice_datafor offsets[0..17]except[0]is 0x20 [16]seq with 0x40 bit set (EOT marker)[17..26]AMBE_SILENCE(9 bytes)[26..32]VOICE_EOT_TRAILER[0x55, 0x55, 0x55, 0x55, 0xC8, 0x7A]
§Errors
Returns EncodeError::BufferTooSmall if out.len() < 32.
§See also
ircDDBGateway/Common/AMBEData.cpp:380-388 (getDPlusData
isEnd branch) for the reference EOT encoder.