Initializes a SHAPE DMA command.
HRESULT SetShapeDmaCommand(
SHAPE_FLOWGRAPH_COMMAND *command,
UINT32 contextId,
UINT32 mixBuffer,
bool writeToMixBuffer
)
command
Type: SHAPE_FLOWGRAPH_COMMAND *
[in, out] The SHAPE_FLOWGRAPH_COMMAND command to initialize.
contextId
Type: UINT32
DMA context ID (that is, the index) this command will reference.
mixBuffer
Type: UINT32
The mix buffer to be read from or writen to, depending on the setting of the writeToMemory flag.
writeToMixBuffer
Type: bool
True if the DMA command should write to the specified mix buffer, reading from main memory. False if the DMA command should read from the specified mix buffer, and write to main memory.
Type: HRESULT
HRESULT success (S_OK) or failure (E_INVALIDARG) code.
Header: Declared in shapeflowgraph.h.
Library: Use acphal.lib.