SetShapeDmaCommand

Initializes a SHAPE DMA command.

Syntax

HRESULT SetShapeDmaCommand(
         SHAPE_FLOWGRAPH_COMMAND *command,
         UINT32 contextId,
         UINT32 mixBuffer,
         bool writeToMixBuffer
)  

Parameters

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.

Return value

Type: HRESULT 

HRESULT success (S_OK) or failure (E_INVALIDARG) code.

Requirements

Header: Declared in shapeflowgraph.h.

Library: Use acphal.lib.