CHIP-8 Emulator p5: Mono Sound & Color Lerp (C / SDL2)

Channel:
Subscribers:
5,840
Published on ● Video Link: https://www.youtube.com/watch?v=sH7UdYAXjDs



Duration: 1:34:18
355 views
14


Mono square wave sound using SDL audio with a callback function, lerping between foreground and background colors in a (failed?) attempt to reduce flickering, and more emulator keybinds.
There is at least 1 more video for this; I found a better test suite rom and want to fix some instructions, and separate original CHIP-8 from SUPERCHIP "quirks" a bit better.

Git Repos:
https://git.sr.ht/~queso_fuego/chip8_emulator_c
https://github.com/queso-fuego/chip8_emulator_c

Join the Community Discord: https://discord.gg/yKm4T89QFn

Links:
https://wiki.libsdl.org/
https://davidgow.net/handmadepenguin/ch8.html
https://wiki.libsdl.org/CategoryAudio
https://pages.mtu.edu/~suits/notefreqs.html
https://onlinetonegenerator.com/

Contact:
email: fuegoqueso@gmail.com
twitter: @Queso_Fuego
twitch (if I stream again, may stream on youtube idk): https://www.twitch.tv/queso_fuego

Questions about setup/software/etc.?
Check the FAQ: https://queso_fuego.srht.site/about.html

0:00 frame time bug
0:59 sdl audio docs & initialize audio
16:47 audio callback function
38:53 fix audio not playing
41:54 test on host/windows
46:18 back to linux
50:30 add draw flag
55:43 fix paused text & add reset key
1:00:56 lerp between colors for ghosting effect
1:22:00 add lerp rate keys
1:25:16 add volume keys
1:28:42 set scale factor from input arg
1:32:57 outro

Music:
"Acid Trumpet" Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 4.0 License
http://creativecommons.org/licenses/by/4.0/

Downtown Glow by Ghostrifter & Devyzed
Creative Commons — Attribution-NoDerivs 3.0 Unported — CC BY-ND 3.0
Music promoted by https://www.chosic.com/free-music/all/

#chip8 #emulator #programming







Tags:
queso fuego
c programming
sdl2
chip8
sound
square waves
emulation
emulator
color lerp