SetShapePcmAudioBuffer

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

Syntax

HRESULT SetShapePcmAudioBuffer(
         SHAPE_PCM_CONTEXT *context,
         const void *audioBuffer
)  

Parameters

context
Type: SHAPE_PCM_CONTEXT *

[in, out] Pointer to a SHAPE_PCM_CONTEXT structure.

audioBuffer
Type: void *

[in] Pointer to the audio buffer.

Return value

Type: HRESULT 

HRESULT success or error code.

Syntax

HRESULT SetShapePcmAudioBuffer(
         SHAPE_PCM_CONTEXT *context,
         APU_ADDRESS audioBuffer
)  

Parameters

context
Type: SHAPE_PCM_CONTEXT *

[in, out] Pointer to a SHAPE_PCM_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 shapepcmcontext.h.

Library: Use acphal.lib.