|
UFO: Alien Invasion
|
Specifies sound API? More...
#include "s_local.h"

Go to the source code of this file.
Functions | |
| void | S_FreeChannel (int c) |
| Callback that is called when a channel finished playing. | |
| void | S_SpatializeChannel (const s_channel_t *ch) |
| Set distance and stereo panning for the specified channel. | |
| void | S_LoopSample (const vec3_t org, s_sample_t *sample, float volume, float attenuation) |
| Adds a loop sample for e.g. ambient sounds. | |
Specifies sound API?
Definition in file s_mix.h.
| void S_LoopSample | ( | const vec3_t | org, |
| s_sample_t * | sample, | ||
| float | volume, | ||
| float | attenuation ) |
Adds a loop sample for e.g. ambient sounds.
Definition at line 134 of file s_mix.cpp.
References s_channel_t::atten, s_sample_t::chunk, CL_Milliseconds(), s_channel_t::count, i, s_sample_t::lastPlayed, MAX_CHANNELS, s_channel_t::org, S_AllocChannel(), s_env, S_SpatializeChannel(), s_channel_t::sample, snd_volume, VectorCopy, VectorLength(), VectorMix(), and VectorSubtract.
Referenced by S_Frame().
| void S_SpatializeChannel | ( | const s_channel_t * | ch | ) |
Set distance and stereo panning for the specified channel.
| [in] | ch | The channel to perform the spatialization for. |
Definition at line 64 of file s_mix.cpp.
References s_channel_t::atten, cl, DotProduct, int(), s_channel_t::org, s_env, snd_distance_scale, todeg, VectorNormalize(), and VectorSubtract.
Referenced by S_Frame(), S_LoopSample(), and S_PlaySample().