> I'm just learning how to make sounds in DOS.
DOS = evil. Focus on Windows... or Linux.. or Mac... or any other OS that still exists. Learning DOS specific stuff is useless.
Streaming sound output is pretty straightforward in Windows using C/C++. It gets a little tricker when you use DirectSound... so if you want to keep it simple you can use the Windows waveOut routines.
Here's a link to the start of the related info on MSDN:
The functions of interest are:
waveOutProc --- this is optional, I don't use it when steaming sound
waveOutReset --- this is useful, but not necessary
If you want I can throw together a quickie tutorial on how to stream sound (I've been bored =P).
Once you know how to stream sound... you need to generate it. Brad Taylor's doc hosted here on nesdev does a more than adequate job with that. It may take a few re-reads for it to finally sink in, but it really covers everything quite nicely.