SOUND_DOUBLE_BUFFER

typedef struct {

    enum {LowerHalf = 0,

          UpperHalf}

                         NextHalf;

    ULONG                BufferSize;

    PUCHAR               Buf;

    ULONG                StartOfData;

    ULONG                nBytes;

    UCHAR                Pad;

} SOUND_DOUBLE_BUFFER, *PSOUND_DOUBLE_BUFFER;

 

The SOUND_DOUBLE_BUFFER structure is an internal structure that describes the usage of a DMA buffer of type SOUND_DMA_BUFFER.

Members

NextHalf

Indicates which half of the buffer is to be used next.

BufferSize

Actual amount of DMA buffer in use. Obtained by calling SoundGetDMABufferSize.

Buf

Pointer to a buffer specified by a SOUND_DMA_BUFFER structure.

StartOfData

Start of valid data.

nBytes

Number of bytes in buffer.

Pad

Value to use when padding the buffer.