1) I like to generate sounds (tones) under windows, Not reading any .wav or any file. To my sorry I just find win api functions (delphi 5, borland c++ 5) that all want to read a .wav files. Is there any win api (or any api) function for generating for example a tone, like: sound (herz, duration)?
2) Please someone clarify to me. I've been told all the time that "under windows one shouldn't access directly: video, ports, interrupts, LPT's, COM's, etc., because they are shared system resources. Insted one should use win api functions or access via the drivers..."
I've found several DOS console versions for controlling soundblaster card. But the few win codes I found use the same direct port access method to the card as for DOS. Is this correct? Isn't there any risk of hanging the system or generate unstabillities. I suppose that I will be interfering at least with the system sounds.
Thanks in advance,