Page 1 of 1

AY codec ?

Posted: Wed Oct 11, 2006 11:05 pm
by mmu_man
I'm wondering if there is any AY codec around, that would create AY register dump files from raw audio.
I know there are some apps that play 4/5 bits PCM, but I think it could be possible to do things differently, with a codec similar to mp3 encoders...
It would FFT the signal, select the 3 biggest freqs (it's basically the job of an mp3 encoder to select the best frequencies) and the corresponding enveloppes and produce the closest register data flow. It would also likely be less intensive for playback.
But I'm not sure the result would be good enough.
Maybe I should have a try at hacking this in ffmpeg (along with a SID codec, that's quite similar). But I'm too tired atm.

Posted: Thu Oct 12, 2006 9:12 am
by mmu_man
Actually I reread the AY page on wikipedia and it mentions a "viterbi" encoder to generate PSG files (for MSX but maybe ORIC could play them too if it's not too cpu-intensive).