SetShapeDmaAudioBuffer

Sets the DMA audio buffer. This is an overloaded function, one function accepts a virtual pointer, the other the physical address.

Syntax

HRESULT SetShapeDmaAudioBuffer(
         SHAPE_DMA_CONTEXT *context,
         void *audioBuffer
)  

Parameters

context
Type: SHAPE_DMA_CONTEXT *

[in, out] Pointer to a SHAPE_DMA_CONTEXT structure.

audioBuffer
Type: void *

[in] Pointer to the audio buffer.

Return value

Type: HRESULT 

HRESULT success or error code.

Syntax

HRESULT SetShapeDmaAudioBuffer(
         SHAPE_DMA_CONTEXT *context,
         APU_ADDRESS audioBuffer
)  

Parameters

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.

Return value

Type: HRESULT 

HRESULT success or error code.

Requirements

Header: Declared in shapedmacontext.h.

Library: Use acphal.lib.