zenilib
0.5.3.0
|
#include "config.h"
#include <stdlib.h>
#include <math.h>
#include "AL/al.h"
#include "AL/alc.h"
#include "alMain.h"
#include "alAuxEffectSlot.h"
#include "alThunk.h"
#include "alError.h"
#include "alSource.h"
Go to the source code of this file.
|
static |
OpenAL cross platform audio library Copyright (C) 1999-2007 by authors. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Or go to http://www.gnu.org/copyleft/lgpl.html
Definition at line 452 of file alAuxEffectSlot.c.
References ALCcontext_struct::ActiveEffectSlotCount, ALCcontext_struct::ActiveEffectSlots, AL_NO_ERROR, AL_OUT_OF_MEMORY, assert, i, LockContext(), LookupEffectSlot, ALCcontext_struct::MaxActiveEffectSlots, NULL, realloc, and UnlockContext().
Referenced by alGenAuxiliaryEffectSlots().
Definition at line 217 of file alAuxEffectSlot.c.
References AL_EFFECTSLOT_GAIN, al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, AL_TRUE, al_try, ALCcontext_DecRef(), CHECK_VALUE, ALeffectslot::Gain, GetContextRef(), LookupEffectSlot, ALeffectslot::NeedsUpdate, and NULL.
AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSlotfv | ( | ALuint | effectslot, |
ALenum | param, | ||
const ALfloat * | values | ||
) |
Definition at line 247 of file alAuxEffectSlot.c.
References AL_EFFECTSLOT_GAIN, al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, alAuxiliaryEffectSlotf, ALCcontext_DecRef(), GetContextRef(), LookupEffectSlot, and NULL.
Definition at line 145 of file alAuxEffectSlot.c.
References AL_EFFECTSLOT_AUXILIARY_SEND_AUTO, AL_EFFECTSLOT_EFFECT, al_endtry, AL_FALSE, AL_INVALID_ENUM, AL_INVALID_NAME, AL_NO_ERROR, al_throwerr, AL_TRUE, al_try, ALCcontext_DecRef(), ALeffectslot::AuxSendAuto, CHECK_VALUE, ALCcontext_struct::Device, GetContextRef(), InitializeEffect(), LookupEffect, LookupEffectSlot, NULL, and ALCcontext_struct::UpdateSources.
AL_API ALvoid AL_APIENTRY alAuxiliaryEffectSlotiv | ( | ALuint | effectslot, |
ALenum | param, | ||
const ALint * | values | ||
) |
Definition at line 187 of file alAuxEffectSlot.c.
References AL_EFFECTSLOT_AUXILIARY_SEND_AUTO, AL_EFFECTSLOT_EFFECT, al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, alAuxiliaryEffectSloti, ALCcontext_DecRef(), GetContextRef(), LookupEffectSlot, and NULL.
Definition at line 91 of file alAuxEffectSlot.c.
References al_endtry, al_free(), AL_INVALID_NAME, AL_INVALID_OPERATION, al_throwerr, al_try, ALCcontext_DecRef(), ALeffectState_Destroy, CHECK_VALUE, ALeffectslot::EffectState, FreeThunkEntry(), GetContextRef(), i, ALeffectslot::id, LookupEffectSlot, memset, NULL, ALeffectslot::ref, RemoveEffectSlot, and RemoveEffectSlotArray().
AL_API ALvoid AL_APIENTRY alGenAuxiliaryEffectSlots | ( | ALsizei | n, |
ALuint * | effectslots | ||
) |
Definition at line 39 of file alAuxEffectSlot.c.
References AddEffectSlotArray(), al_calloc(), al_catchany, al_endtry, al_free(), AL_NO_ERROR, AL_OUT_OF_MEMORY, al_throwerr, al_try, ALCcontext_DecRef(), alDeleteAuxiliaryEffectSlots, ALeffectState_Destroy, CHECK_VALUE, ALCcontext_struct::EffectSlotMap, ALeffectslot::EffectState, FreeThunkEntry(), GetContextRef(), ALeffectslot::id, InitEffectSlot(), InsertUIntMapEntry(), and NewThunkEntry().
AL_API ALvoid AL_APIENTRY alGetAuxiliaryEffectSlotf | ( | ALuint | effectslot, |
ALenum | param, | ||
ALfloat * | value | ||
) |
Definition at line 337 of file alAuxEffectSlot.c.
References AL_EFFECTSLOT_GAIN, al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), ALeffectslot::Gain, GetContextRef(), LookupEffectSlot, and NULL.
AL_API ALvoid AL_APIENTRY alGetAuxiliaryEffectSlotfv | ( | ALuint | effectslot, |
ALenum | param, | ||
ALfloat * | values | ||
) |
Definition at line 364 of file alAuxEffectSlot.c.
References AL_EFFECTSLOT_GAIN, al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), alGetAuxiliaryEffectSlotf, GetContextRef(), LookupEffectSlot, and NULL.
AL_API ALvoid AL_APIENTRY alGetAuxiliaryEffectSloti | ( | ALuint | effectslot, |
ALenum | param, | ||
ALint * | value | ||
) |
Definition at line 276 of file alAuxEffectSlot.c.
References AL_EFFECTSLOT_AUXILIARY_SEND_AUTO, AL_EFFECTSLOT_EFFECT, al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), ALeffectslot::AuxSendAuto, ALeffectslot::effect, GetContextRef(), ALeffect::id, LookupEffectSlot, and NULL.
AL_API ALvoid AL_APIENTRY alGetAuxiliaryEffectSlotiv | ( | ALuint | effectslot, |
ALenum | param, | ||
ALint * | values | ||
) |
Definition at line 307 of file alAuxEffectSlot.c.
References AL_EFFECTSLOT_AUXILIARY_SEND_AUTO, AL_EFFECTSLOT_EFFECT, al_endtry, AL_INVALID_ENUM, AL_INVALID_NAME, al_throwerr, al_try, ALCcontext_DecRef(), alGetAuxiliaryEffectSloti, GetContextRef(), LookupEffectSlot, and NULL.
AL_API ALboolean AL_APIENTRY alIsAuxiliaryEffectSlot | ( | ALuint | effectslot | ) |
Definition at line 130 of file alAuxEffectSlot.c.
References AL_FALSE, AL_TRUE, ALCcontext_DecRef(), GetContextRef(), and LookupEffectSlot.
ALenum InitEffectSlot | ( | ALeffectslot * | slot | ) |
Definition at line 573 of file alAuxEffectSlot.c.
References AL_FALSE, AL_NO_ERROR, AL_OUT_OF_MEMORY, AL_TRUE, ALeffectslot::AuxSendAuto, BUFFERSIZE, ALeffectslot::ClickRemoval, ALeffectslot::EffectState, ALeffectslot::Gain, i, ALeffectslot::NeedsUpdate, NoneCreate(), ALeffectslot::PendingClicks, and ALeffectslot::ref.
Referenced by alcOpenDevice(), and alGenAuxiliaryEffectSlots().
ALenum InitializeEffect | ( | ALCdevice * | Device, |
ALeffectslot * | EffectSlot, | ||
ALeffect * | effect | ||
) |
Definition at line 484 of file alAuxEffectSlot.c.
References AL_EFFECT_DEDICATED_DIALOGUE, AL_EFFECT_DEDICATED_LOW_FREQUENCY_EFFECT, AL_EFFECT_EAXREVERB, AL_EFFECT_ECHO, AL_EFFECT_NULL, AL_EFFECT_REVERB, AL_EFFECT_RING_MODULATOR, AL_FALSE, AL_NO_ERROR, AL_OUT_OF_MEMORY, AL_TRUE, ALCdevice_Lock, ALCdevice_Unlock, ALeffectState_Destroy, ALeffectState_DeviceUpdate, ALeffectState_Update, DedicatedCreate(), EchoCreate(), ALeffectslot::effect, ALeffectslot::EffectState, memcpy, memset, ModulatorCreate(), ALeffectslot::NeedsUpdate, NoneCreate(), NULL, RestoreFPUMode(), ReverbCreate(), SetMixerFPUMode(), and ALeffect::type.
Referenced by alAuxiliaryEffectSloti(), and alcOpenDevice().
ALeffectState* NoneCreate | ( | void | ) |
Definition at line 415 of file alAuxEffectSlot.c.
References calloc, ALeffectState::Destroy, ALeffectState::DeviceUpdate, NoneDestroy(), NoneDeviceUpdate(), NoneProcess(), NoneUpdate(), NULL, ALeffectState::Process, and ALeffectState::Update.
Referenced by InitEffectSlot(), and InitializeEffect().
|
static |
|
static |
|
static |
Definition at line 408 of file alAuxEffectSlot.c.
Referenced by NoneCreate().
|
static |
Definition at line 402 of file alAuxEffectSlot.c.
Referenced by NoneCreate().
ALvoid ReleaseALAuxiliaryEffectSlots | ( | ALCcontext * | Context | ) |
Definition at line 595 of file alAuxEffectSlot.c.
References al_free(), ALeffectState_Destroy, UIntMap::array, ALCcontext_struct::EffectSlotMap, ALeffectslot::EffectState, FreeThunkEntry(), ALeffectslot::id, memset, NULL, UIntMap::size, and UIntMap::value.
Referenced by FreeContext().
|
static |
Definition at line 432 of file alAuxEffectSlot.c.
References ALCcontext_struct::ActiveEffectSlotCount, ALCcontext_struct::ActiveEffectSlots, LockContext(), and UnlockContext().
Referenced by alDeleteAuxiliaryEffectSlots().