1. A fixed rata data encoder which compresses a fixed number of input samples into a fixed number of bits, comprising: a quantization logic configured to quantize a sample; a coding logic configured to receive and code the quantized sample, the coding logic including more than one coding logics, wherein a first coding logic includes an entropy coding; a second coding logic includes a coding logic that assigns shorter or equal length code words to symbols with a probability higher than other symbols and results in a higher bit rate than the entropy coding if used in a variable rate lossless coding of the samples if the probability distribution of the samples remains unchanged over time; and a packet builder, communicatively coupled to the coding logic, configured to build a packet with the encoded samples.