Yep, i wrotte my player exactly like this, the problem is the encoder itself.I'd like to encode sound with 1/300 sec samples (for CPC) but actually the encoder uses only 1/60 sec samples.Do you plan to add variable sample size to your encoder or will it stick to 1/60 sec samples ?
The replayer is on the interrupt and takes very few cycles already. It updates frequencies and volumes on the 3 channels at each interrupt from precomputed rom data. Packing volumes with periods, it needs 6 bytes per fame. That's all.
Edited by usar666, Wed Apr 11, 2018 2:21 AM.