Sample Wavedev Drivers
The sample audio driver is a layered, interrupt-driven stream interface driver that drives an audio device. The sample code is provided as a convenience and does not include any restrictions for audio hardware for Microsoft® Windows® CE. An audio driver could be implemented that is monolithic, is polled, and that drives a peripheral device. The sample audio driver MDD layer implements a single audio device capable of playing and recording pulse code modulation (PCM) waveform audio. The sample code supports simultaneous recording and playing but can also be used with audio devices that can perform only one function at a time. The PDD layer communicates with the audio hardware to start and stop playing and recording and to initialize and deinitialize the hardware.
The sample code for Wavedev drivers is located in %_WINCEROOT%\Public\Common\Oak\Drivers\WAVEDEV.
Note The provided MDD sources are simplistic and should be treated as driver templates. You are encouraged to modify these sources to fit your need.
As of Windows CE .NET, the WAV API supports multiple streams per driver. In the past, only one stream per driver was opened, so many drivers did not keep track of their open or closed state. With the addition of this feature, the driver is responsible for verifying that it is open or closed. If a driver supports only a single stream, the WODM_OPEN or WIDM_OPEN messages will fail with a return value of MMSYSERR_ALLOCATED.
For Microsoft DirectShow® applications to function properly, the optional Microsoft DirectSound® extensions to Wavedev drivers must be fully supported. If a DirectSound feature is not available through the DirectSound extensions, a DirectSound application will run in most cases, with a decreased functionality, while a DirectShow application may behave unpredictably or fail.
See Also
Playing and Recording | Interrupt Handling in Audio Drivers | Power Management in Audio Drivers | Audio Driver Samples
Last updated on Tuesday, May 18, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.