Sets the DMA audio buffer. This is an overloaded function, one function accepts a virtual pointer, the other the physical address.
HRESULT SetShapeDmaAudioBuffer(
SHAPE_DMA_CONTEXT *context,
void *audioBuffer
)
context
Type: SHAPE_DMA_CONTEXT *
[in, out] Pointer to a SHAPE_DMA_CONTEXT structure.
audioBuffer
Type: void *
[in] Pointer to the audio buffer.
Type: HRESULT
HRESULT success or error code.
HRESULT SetShapeDmaAudioBuffer(
SHAPE_DMA_CONTEXT *context,
APU_ADDRESS audioBuffer
)
context
Type: SHAPE_DMA_CONTEXT *
[in, out] Pointer to a SHAPE_DMA_CONTEXT structure.
audioBuffer
Type: APU_ADDRESS
[in] The physical address of the buffer.
Type: HRESULT
HRESULT success or error code.
Header: Declared in shapedmacontext.h.
Library: Use acphal.lib.