controlling SoundBlaster under windows

Hi,

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,
Arturo.

Comments

  • : Hi,
    :
    : 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,
    : Arturo.
    :



    boss
    if dont want to read any wav file doesn't matter, if you know about "FFT". try to access the sound card using waveXXXX functions
    determini IFFT of the specific frequency and send it ot the device driver.

    bye
    srikanth
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion