AXSetMasterVolume

Syntax

#include <revolution/ax.h>

void AXSetMasterVolume(u16 volume);

Arguments

volume Master volume value.

Return Values

None.

Description

The AXSetMasterVolume function configures the AX master volume. The volume is a 16-bit fixed point number, where the high-order bit represents the integer part and 15 bits the fractional part, and the selectable range is from 0x0000 (= 0.0) to 0x8000 (= 1.0). The default value is 0x8000 (= 1.0).

The master volume value is applied to each sample immediately before sample data synthesized by DSP is output to main memory.

Setting a master volume value that is very different from the current value (such as 0x8000 -> 0x0000) may cause noise. Change the master volume gradually in appropriately timed steps within the application.

Note: Master volume is not applied to Wii Remote speaker data.

See Also

AXGetMasterVolume

Revision History

2006/10/23 Initial version.


CONFIDENTIAL