# AXARTSet3DDistanceScale

## Syntax

#include <cafe.h>
#include <cafe/axart.h>
void AXARTSet3DDistanceScale(f32 scale);

## Parameters

## Return Values

None.

## Description

The `AXARTSet3DDistanceScale`

function sets an arbitrary distance scale for the volume attenuation of 3D sounds.
The AXART Library finds the distance attenuation of volume based on the distance from the camera using the following formula. The scale set by this function is assigned to scale in the formula, while the `AXART_3D`

articulator member `dist`

is assigned to `dist`

. Calculation results are saved in the same `AXART_3D`

articulator's member `attenuation`

.

`attenuation = -6dB x (dist ÷ scale)`

## Do Not Call From

None.

## See Also

`AXARTSet3DDopplerScale`

`AXART_3D`

## Revision History

2013/05/08 Automated cleanup pass.

2006/09/01 Added an argument.

2006/03/01 Initial version.

CONFIDENTIAL