AXSetDeviceCompressorTable

Syntax

#include <cafe/ax.h>

AXPB_ERROR_CODE AXSetDeviceCompressorTable(AXPBDeviceType device,
                                           u16* table, u16 frames);

Parameters

device Output device.
table Pointer to the compressor table.
frames The release time in audio frames. Must be a value between 0 and 30,000 (inclusive).

Return Values

None.

Description

Register a volume compressor table (generated by AXMakeCompressorTable).

The volume compressor references values directly from the buffer table. Do not create the buffer on the stack. The buffer must be 32-byte aligned.

This function must be invoked after AX has been initialized but before the volume compressor has been enabled.

If table is set to NULL, the volume compressor will use a default internal table.

Availability

Library Version Availability
Sound 2.0 Yes
Sound 1.0 Yes

Do Not Call From

None.

See Also

AX Data Structures and Definitions
AXMakeCompressorTable
AXSetDeviceCompressor

Revision History

2013/05/08 Automated cleanup pass.
2012/01/26 Update to Audio API v2.0.
2011/02/21 Initial Version


CONFIDENTIAL