The simple solution to your problem is to buy or otherwise obtain a sound recording & playback library or component. There are a number on the web at various prices (including free), with different capability. We sell an ActiveX component ourselves.
Otherwise, you will have to use the Windows SDK functions. The standard function sets are
waveInXXXX() for playback and
waveInXXXX() for recording.
Alternatively, if you really like COM you can use the equivalent interfaces in DirectX (DirectSound section).
All these are documented on
MSDN, but unfortunately with precious few examples - as I think you have found. I am sure there used to be more! There is possibly a book somewhere containing more examples.
--
Martin
--
Martin
Certified CVI Developer