Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Go to the source code of this file.
Enumerations | |
enum | Mix_SoftVolume_Shape { MIX_SV_SHAPE_LINEAR, MIX_SV_SHAPE_EXP, MIX_SV_SHAPE_EASED, MIX_SV_SHAPE_EASED_EXP } |
Functions | |
void | Mix_SoftVolume_Change (int chan, double newvolume, double time, Mix_SoftVolume_Shape shape) |
void | Mix_SoftVolume_Force (int chan, double newvolume) |
double | Mix_SoftVolume_GetCurrentVolume (int chan) |
void | Mix_SoftVolume_AutoStopMusic (int chan, int enable=1) |
enum Mix_SoftVolume_Shape |
Enumerator | |
---|---|
MIX_SV_SHAPE_LINEAR | |
MIX_SV_SHAPE_EXP | |
MIX_SV_SHAPE_EASED | |
MIX_SV_SHAPE_EASED_EXP |
Definition at line 4 of file softvolume.h.
Definition at line 560 of file softvolume.cpp.
References Mix_SoftVolume_Init().
Referenced by PlayMusic().
void Mix_SoftVolume_Change | ( | int | chan, |
double | newvolume, | ||
double | time, | ||
Mix_SoftVolume_Shape | shape | ||
) |
Definition at line 474 of file softvolume.cpp.
References t_SoftVolume_State::autoStopMusic, C_PI, UniverseUtil::cos(), t_SoftVolume_State::current_volume, dtof16(), f16tod(), fprintf, i, t_SoftVolume_State::in_transition, shape_sampler::init(), linear2log(), log2linear(), Mix_SoftVolume_Init(), MIX_SV_SHAPE_EASED, MIX_SV_SHAPE_EASED_EXP, MIX_SV_SHAPE_EXP, MIX_SV_SHAPE_LINEAR, shape_sampler::shape, SHAPE_SAMPLES, STD_ERR, and t_SoftVolume_State::t_shape.
Referenced by main(), and PlayMusic().
void Mix_SoftVolume_Force | ( | int | chan, |
double | newvolume | ||
) |
Definition at line 530 of file softvolume.cpp.
References t_SoftVolume_State::current_volume, dtof16(), t_SoftVolume_State::in_transition, and Mix_SoftVolume_Init().
Referenced by PlayMusic().
double Mix_SoftVolume_GetCurrentVolume | ( | int | chan) |