Link to home
Start Free TrialLog in
Avatar of slzmw
slzmw

asked on

WINDOWS 32 API PROGRAMMING(SOUND DETECTION)

I want to write a WINS32 API program to detect a sound input from the sound card(I used SB AWE 32)and output the detection to the printer port/serial port. For the serial port, I already figured out how to output the signal by using Assembly Language. However, I don't know how to link my assembly program to the C   program that I used for write the API program.     1) Please explain in detail of how API program works and give a pseudo code for this API program that use for sound detection.2) Please provide me some ideas how to link Assembly program to C   program.3)Please suggest me where can I get the info about API programming. Give me some titles of the books or authors who are expert in this field.It will be appriciated if you guys can answer me A.S.A.P. Thanks.
Avatar of slzmw
slzmw

ASKER

Adjusted points to 120
Avatar of slzmw

ASKER

Points increased to 165! Please help me solve this problem!
Is that a Win32 or a Win32S program? I don't think it's a good idea to try to output it using assembly code in a Win32 program, but it might work. It would be better to use API for serial and parallell port too.
Avatar of slzmw

ASKER

Points has been increased to 270, please help.( for y96andha )I chose output by using Assembly language because it gave me direct access to the hardware addressesand allowed me to gain fully control of the output I want. Another reason I used Assembly because I am not familiar with win API program. Thanks
1) use the functions waveInGetNumDevs(), waveInGetID() and waveInGetDevCaps() for detecting the sound devices, then use waveInOpen() to open the device for "recording".
   You must provide a callback procedure (see waveInProc()).

2) put your assembly code INSIDE your C code ( ASM directive)
   The best thing you can do is to use API functions to
   output data to the serial port

3) Win32 SDK Help.
ASKER CERTIFIED SOLUTION
Avatar of tiago
tiago

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial