Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

General • Re: PT52-Lua The Modern Retro computer

$
0
0
Had a little time here and there so I was working on the LUAC the builtin lua compiler unfortunately it seems like there is a misaligned read call somewhere in the lua code it's a can not fix at the moment. not that LUAC is all that useful it was more can it be done.

I turned my attention to the sound playback and I've come to think the AY-3 sound is likely the best and really the emulator sounds quite good. So I'm going to have a pair of AY-3 simulated chips and for all those PSRAM people I've worked it out and PCM sample playback now works. The PCM samples must be loaded into RAM so I've decided that it's best to use PSRAM for this. There is screen corruption as the sample is loaded but after that it works perfectly well.

The PCM Loader expects a WAV File 16bit MONO with a sample rate of 22050kHz it will load any sample rate but will do no resampling so the playback will be wrong. I could make the loader strict but I don't see the point. I could add a way to resample but again this is a costly operation and samples would likely be loaded when your application starts up as it's not a quick process.

The other think I want to implement is a built in sequencer this is for the AY-3 sounds and should update at 60Hz like the screen. When active it would cycle through a sequence loaded into memory this would support background music and sound F/X likely able to play two sequences at once.

This is all still very much a work in progress and my slop err code isn't posted until I do some tidy up work and make it presentable, and functional.

Thanks for following along.

If you have suggestions or thought about the sound library let me know, I'm hoping to use the sound library in my other project that uses Lua so it all helps.

Statistics: Posted by DarkElvenAngel — Tue Oct 07, 2025 11:18 pm



Viewing all articles
Browse latest Browse all 8609

Trending Articles