An encoder maps the input to a continuous vector that is replaced by the nearest codebook entry; a decoder reconstructs the input from the code.
Autoregressive models operate on discrete tokens, yet much data (image, audio) is continuous.