Scream it Loud and Scream it Proud
Hello everyone! We are back with the once again DAILY devlog!!! Let’s dive right in!
IT LIIIIIVES!!!
This morning, as soon as I came up, I sat my @ down to trouble shoot my audio processing on 4 hours of sleep
. Despite adding the manual sleep time reduction, I was still experiencing some crackling, so I found a bug in the channels, solving which didn’t solve anything, but switching timing to be based off of audio when available worked like a charm, giving better and more accuracte speeds and crisp audio, so I was able to show off my COMPLETED EMULATOR CORE to some of my friends (as well as my backpack with Ferris on it).
IT DIIIIIES!!!
After adding the audio, I had to make sure that it wouldn’t cause the emulator to break, so I added a timeout that shuts off audio if it’s broken for more than 500 ms
YES CAAAAAAP
Because of how I was translating from u16 audio to f32, I was getting popping, so I implemented a software capacitor to slowly dampen sounds closer to EQUILIBRIUM
SWITCH IT UUUUP
After audio had all it needed, it was time to work on something I had long anticipated, a lib.rs for people o build their own frontends on top of my emulator. I also added an Emulator wrapper struct around Cpu so that it would be easier to manage pub methods and such without the ~1550 other lines in cpu.rs making things hard. There’s a reason this project isn’t just one big file of 5000 SLoC.
I also added some documentation, and I found the best use of Claude Code is checking for spelling errors (it’s like I’m illiterate!)
Speaking of SLoC, I cracked 5000 today! This is about 3.5x larger than my last two projects combined! I’ll see y’all next time, and don’t forget to listen to beabadoobee’s new album Pylon and Jamie Paige!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.