ULONG
SoundGetDMABufferSize(
IN PWAVE_INFO WaveInfo
);
The SoundGetDMABufferSize function returns the actual DMA buffer size used for DMA transfers by the specified waveform device.
Parameters
WaveInfo
Pointer to a WAVE_INFO structure.
Return Value
Buffer size in bytes.
Comments
This function returns the number of bytes that are actually used within the DMA buffer specified by the WAVE_INFO structure’s DMABuf member. If the buffer is large enough, soundlib.lib tries to set a buffer size corresponding to 1/8 of a second of play or record time.
Generally, DMA buffers for waveform devices are allocated by calling SoundGetCommonBuffer.
Drivers calling SoundGetDMABufferSize must include wave.h.