|
> I'm just learning how to make sounds in DOS.
Ack!
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:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_waveoutopen.asp
The functions of interest are:
waveOutOpen waveOutProc --- this is optional, I don't use it when steaming sound waveOutPrepareHeader waveOutWrite waveOutUnprepareHeader waveOutReset --- this is useful, but not necessary waveOutClose
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.
|