I have recently completed a Windows program that uses Beep(frequency, duration) from windows.h to play primitive music through the PC speaker. I've looked into SDL to play it but it seems it's mostly just for playing pre-built wavs and midis. I looked at FMOD too, but I can't figure it out and the binaries won't run outside the debugger.