[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
int Mix_SetDistance(int channel, Uint8 distance)
This effect simulates a simple attenuation of volume due to distance. The volume never quite reaches silence, even at max distance.
NOTE: Using a distance of 0 will cause the effect to unregister itself from channel. You cannot unregister it any other way, unless you use Mix_UnregisterAllEffects
on the channel.
Returns: Zero on errors, such as an invalid channel, or if Mix_RegisterEffect
failed.
|
See Also:
4.6.7 Mix_SetPosition,
4.6.3 Mix_UnregisterAllEffects