I am going to develop some kind of a wave generator using PC soundcard and I need two things: to output a specified frequency to the LINE-OUT port and try to get as presisely as I can the frequency from the LINE-IN/MIC port of any soundcard.
So I will be grateful if you could answer the following questions:

    [*]How to output an already specified frequrecy sound with specified duration (for instance 10 ns) to the LINE_OUT port (speaker)?
    [*]How to detect the frequency of incoming wave/sound from the MICROFONE socket of a soundcard or from LINE_IN port?
    [*]Where can I find the information about programming devices, that deal with soundcards of PC's?

    All this should work correctly under Windows of all versions.
    I just know, that to detect the signal frequency, I need to use a FFT analysis, but I can't find something clear to get to know how it works.

    Thanks beforehand for your answers.
Posted on 2002-11-07 12:24:35 by Maestro
Hello Maestro,
The programming topic you need help with lies out of my coding knowledge.
But I have found some links that may be of some interest to you.
The links I have written below are links found using .google.
And I hope that they can point you in the right direction.

http://www.codeguru.com/multimedia/gene_output_sound_class.shtml
http://www.gamedev.net/reference/list.asp?categoryid=80#42
http://www.programmersheaven.com/zone10/mh107.htm
http://www.planetsourcecode.com/ <-- PL: [ C, C++, VB, Delphi, .Net]
^^ - Use the search function and you'll prolly find alot of info in that archive.


:Natas:
Posted on 2002-11-07 17:51:23 by natas
Natas,
Thank you GREATELY! I really have found what I need! Thanks one more time.
Best regards,
Maestro.
Posted on 2002-11-08 10:29:27 by Maestro