using waveIn* (such as waveInOpen) for capture voice from microphone
may be more complicated than using Dx,but it can run without Dx.
if you sure want to use that I can give you my sample.