Dr. Dobb's Journal October 1998
DirectSound: The Future of Recording on Windows
Recording in real time on Windows can be complicated. However, Microsoft is changing things with DirectX 5. Its DirectSound subsystem now supports audio capture. It has a slightly simpler interface, and it works very differently than the traditional Windows and Mac OS systems. You allocate a single buffer that DirectSound fills in a circular fashion. You can have DirectSound notify you when it has recorded a certain amount of data, or you can ask it yourself. When enough data has been recorded, you can copy it out of the circular buffer and process it as you see fit. The initial release does not offer any performance improvements over the existing waveIn APIs in terms of letting you process the samples sooner after they are recorded, but in the future it will. Look up DirectSound and DirectSoundCapture on MSDN for more information.
-- R.C.
Copyright © 1998, Dr. Dobb's Journal