Quake II RTX doxygen
1.0 dev
|
|
#include "sound.h"
#include "qal/dynamic.h"
Go to the source code of this file.
◆ AL_CopyVector
#define AL_CopyVector |
( |
|
a, |
|
|
|
b |
|
) |
| ((b)[0]=-(a)[1],(b)[1]=(a)[2],(b)[2]=-(a)[0]) |
Definition at line 29 of file al.c.
◆ AL_UnpackVector
#define AL_UnpackVector |
( |
|
v | ) |
-v[1],v[2],-v[0] |
Definition at line 28 of file al.c.
◆ MIN_CHANNELS
Definition at line 32 of file al.c.
◆ AL_AddLoopSounds()
◆ AL_DeleteSfx()
◆ AL_FindLoopingSound()
◆ AL_Init()
qboolean AL_Init |
( |
void |
| ) |
|
Definition at line 127 of file al.c.
131 Com_DPrintf(
"Initializing OpenAL\n");
149 Com_Printf(
"ERROR: Couldn't get a single Source.\n");
163 Com_DPrintf(
"Got %d AL sources\n", i);
173 Com_Printf(
"OpenAL initialized.\n");
Referenced by S_Init().
◆ AL_InitStreamSource()
static void AL_InitStreamSource |
( |
| ) |
|
|
static |
◆ AL_IssuePlaysounds()
◆ AL_PlayChannel()
◆ AL_RawSamples()
void AL_RawSamples |
( |
int |
samples, |
|
|
int |
rate, |
|
|
int |
width, |
|
|
int |
channels, |
|
|
byte * |
data, |
|
|
float |
volume |
|
) |
| |
Definition at line 505 of file al.c.
516 format = AL_FORMAT_MONO8;
520 format = AL_FORMAT_STEREO8;
527 format = AL_FORMAT_MONO16;
531 format = AL_FORMAT_STEREO16;
Referenced by S_RawSamples().
◆ AL_Shutdown()
Definition at line 183 of file al.c.
185 Com_Printf(
"Shutting down OpenAL.\n");
Referenced by S_Shutdown().
◆ AL_SoundInfo()
◆ AL_Spatialize()
◆ AL_StopAllChannels()
◆ AL_StopChannel()
◆ AL_StreamDie()
◆ AL_StreamUpdate()
Definition at line 92 of file al.c.
99 if (state == AL_STOPPED)
Referenced by AL_Update().
◆ AL_UnqueueRawSamples()
void AL_UnqueueRawSamples |
( |
| ) |
|
◆ AL_Update()
Definition at line 438 of file al.c.
442 vec_t orientation[6];
475 if (
qalGetError() != AL_NO_ERROR || state == AL_STOPPED) {
Referenced by S_Update().
◆ AL_UploadSfx()
Definition at line 201 of file al.c.
205 ALenum format =
s_info.
width == 2 ? AL_FORMAT_MONO16 : AL_FORMAT_MONO8;
209 s->error = Q_ERR_TOO_FEW;
217 s->error = Q_ERR_LIBRARY_ERROR;
Referenced by S_LoadSound().
◆ active_buffers
◆ s_framecount
◆ s_srcnums
◆ streamPlaying
qboolean streamPlaying = qfalse |
◆ streamSource
void AL_PlayChannel(channel_t *ch)
entity_state_t entityStates[MAX_PARSE_ENTITIES]
#define AL_LOOP_POINTS_SOFT
static void AL_InitStreamSource()
static void AL_StreamDie(void)
channel_t channels[MAX_CHANNELS]
QAL_IMP void QAL_Shutdown(void)
static channel_t * AL_FindLoopingSound(int entnum, sfx_t *sfx)
void CL_GetEntitySoundOrigin(int ent, vec3_t org)
static void AL_IssuePlaysounds(void)
static ALuint streamSource
#define AL_CopyVector(a, b)
qhandle_t sound_precache[MAX_SOUNDS]
void AL_StopChannel(channel_t *ch)
struct playsound_s * next
void S_IssuePlaysound(playsound_t *ps)
char * Com_GetLastError(void)
channel_t * S_PickChannel(int entnum, int entchannel)
playsound_t s_pendingplays
void Com_SetLastError(const char *msg)
#define SOUND_LOOPATTENUATE
void AL_StopAllChannels(void)
#define qalSourceQueueBuffers
unsigned samples[LAG_WIDTH]
float S_GetLinearVolume(float perceptual)
static void AL_StreamUpdate(void)
static ALuint s_srcnums[MAX_CHANNELS]
static void AL_AddLoopSounds(void)
sfx_t * S_SfxForHandle(qhandle_t hSfx)
#define qalIsExtensionPresent
static void AL_Spatialize(channel_t *ch)
#define AL_UnpackVector(v)
vec_t VectorNormalize(vec3_t v)
void S_BuildSoundList(int *sounds)
#define qalSourceUnqueueBuffers