The optimal settings are preferably determined,in part, by calculating a SNR based upon the measured BER and current buffer sizes.By way of example, the performance of the decoder 130 is simulated under various conditions and the results of the simulations are stored in a table, such as Table 1, for use by the means for adjusting the coding gain 142 during operation of thesystem 100.