zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
alSource.c File Reference
#include "config.h"
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include "AL/al.h"
#include "AL/alc.h"
#include "alMain.h"
#include "alError.h"
#include "alSource.h"
#include "alBuffer.h"
#include "alThunk.h"
#include "alAuxEffectSlot.h"

Go to the source code of this file.

Macros

#define CHECKVAL(x)
 
#define RETERR(x)
 

Typedefs

typedef enum SrcFloatProp SrcFloatProp
 
typedef enum SrcIntProp SrcIntProp
 

Enumerations

enum  SrcFloatProp {
  sfPitch = AL_PITCH, sfGain = AL_GAIN, sfMinGain = AL_MIN_GAIN, sfMaxGain = AL_MAX_GAIN,
  sfMaxDistance = AL_MAX_DISTANCE, sfRolloffFactor = AL_ROLLOFF_FACTOR, sfDopplerFactor = AL_DOPPLER_FACTOR, sfConeOuterGain = AL_CONE_OUTER_GAIN,
  sfSecOffset = AL_SEC_OFFSET, sfSampleOffset = AL_SAMPLE_OFFSET, sfByteOffset = AL_BYTE_OFFSET, sfConeInnerAngle = AL_CONE_INNER_ANGLE,
  sfConeOuterAngle = AL_CONE_OUTER_ANGLE, sfRefDistance = AL_REFERENCE_DISTANCE, sfPosition = AL_POSITION, sfVelocity = AL_VELOCITY,
  sfDirection = AL_DIRECTION, sfSourceRelative = AL_SOURCE_RELATIVE, sfLooping = AL_LOOPING, sfBuffer = AL_BUFFER,
  sfSourceState = AL_SOURCE_STATE, sfBuffersQueued = AL_BUFFERS_QUEUED, sfBuffersProcessed = AL_BUFFERS_PROCESSED, sfSourceType = AL_SOURCE_TYPE,
  sfConeOuterGainHF = AL_CONE_OUTER_GAINHF, sfAirAbsorptionFactor = AL_AIR_ABSORPTION_FACTOR, sfRoomRolloffFactor = AL_ROOM_ROLLOFF_FACTOR, sfDirectFilterGainHFAuto = AL_DIRECT_FILTER_GAINHF_AUTO,
  sfAuxSendFilterGainAuto = AL_AUXILIARY_SEND_FILTER_GAIN_AUTO, sfAuxSendFilterGainHFAuto = AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO, sfDirectChannelsSOFT = AL_DIRECT_CHANNELS_SOFT, sfDistanceModel = AL_DISTANCE_MODEL,
  sfSampleRWOffsetsSOFT = AL_SAMPLE_RW_OFFSETS_SOFT, sfByteRWOffsetsSOFT = AL_BYTE_RW_OFFSETS_SOFT, sfSecOffsetLatencySOFT = AL_SEC_OFFSET_LATENCY_SOFT
}
 
enum  SrcIntProp {
  siMaxDistance = AL_MAX_DISTANCE, siRolloffFactor = AL_ROLLOFF_FACTOR, siRefDistance = AL_REFERENCE_DISTANCE, siSourceRelative = AL_SOURCE_RELATIVE,
  siConeInnerAngle = AL_CONE_INNER_ANGLE, siConeOuterAngle = AL_CONE_OUTER_ANGLE, siLooping = AL_LOOPING, siBuffer = AL_BUFFER,
  siSourceState = AL_SOURCE_STATE, siBuffersQueued = AL_BUFFERS_QUEUED, siBuffersProcessed = AL_BUFFERS_PROCESSED, siSourceType = AL_SOURCE_TYPE,
  siSecOffset = AL_SEC_OFFSET, siSampleOffset = AL_SAMPLE_OFFSET, siByteOffset = AL_BYTE_OFFSET, siDopplerFactor = AL_DOPPLER_FACTOR,
  siPosition = AL_POSITION, siVelocity = AL_VELOCITY, siDirection = AL_DIRECTION, siDirectFilterGainHFAuto = AL_DIRECT_FILTER_GAINHF_AUTO,
  siAuxSendFilterGainAutio = AL_AUXILIARY_SEND_FILTER_GAIN_AUTO, siAuxSendFilterGainHFAuto = AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO, siDirectFilter = AL_DIRECT_FILTER, siAuxSendFilter = AL_AUXILIARY_SEND_FILTER,
  siDirectChannelsSOFT = AL_DIRECT_CHANNELS_SOFT, siDistanceModel = AL_DISTANCE_MODEL, siSampleRWOffsetsSOFT = AL_SAMPLE_RW_OFFSETS_SOFT, siByteRWOffsetsSOFT = AL_BYTE_RW_OFFSETS_SOFT,
  siSampleOffsetLatencySOFT = AL_SAMPLE_OFFSET_LATENCY_SOFT
}
 

Functions

AL_API ALvoid AL_APIENTRY alDeleteSources (ALsizei n, const ALuint *sources)
 
AL_API ALvoid AL_APIENTRY alGenSources (ALsizei n, ALuint *sources)
 
AL_API void AL_APIENTRY alGetSource3dSOFT (ALuint source, ALenum param, ALdouble *value1, ALdouble *value2, ALdouble *value3)
 
AL_API ALvoid AL_APIENTRY alGetSource3f (ALuint source, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3)
 
AL_API void AL_APIENTRY alGetSource3i (ALuint source, ALenum param, ALint *value1, ALint *value2, ALint *value3)
 
AL_API void AL_APIENTRY alGetSource3i64SOFT (ALuint source, ALenum param, ALint64SOFT *value1, ALint64SOFT *value2, ALint64SOFT *value3)
 
AL_API void AL_APIENTRY alGetSourcedSOFT (ALuint source, ALenum param, ALdouble *value)
 
AL_API void AL_APIENTRY alGetSourcedvSOFT (ALuint source, ALenum param, ALdouble *values)
 
AL_API ALvoid AL_APIENTRY alGetSourcef (ALuint source, ALenum param, ALfloat *value)
 
AL_API ALvoid AL_APIENTRY alGetSourcefv (ALuint source, ALenum param, ALfloat *values)
 
AL_API ALvoid AL_APIENTRY alGetSourcei (ALuint source, ALenum param, ALint *value)
 
AL_API void AL_APIENTRY alGetSourcei64SOFT (ALuint source, ALenum param, ALint64SOFT *value)
 
AL_API void AL_APIENTRY alGetSourcei64vSOFT (ALuint source, ALenum param, ALint64SOFT *values)
 
AL_API void AL_APIENTRY alGetSourceiv (ALuint source, ALenum param, ALint *values)
 
AL_API ALboolean AL_APIENTRY alIsSource (ALuint source)
 
AL_API ALvoid AL_APIENTRY alSource3dSOFT (ALuint source, ALenum param, ALdouble value1, ALdouble value2, ALdouble value3)
 
AL_API ALvoid AL_APIENTRY alSource3f (ALuint source, ALenum param, ALfloat value1, ALfloat value2, ALfloat value3)
 
AL_API void AL_APIENTRY alSource3i (ALuint source, ALenum param, ALint value1, ALint value2, ALint value3)
 
AL_API void AL_APIENTRY alSource3i64SOFT (ALuint source, ALenum param, ALint64SOFT value1, ALint64SOFT value2, ALint64SOFT value3)
 
AL_API ALvoid AL_APIENTRY alSourcedSOFT (ALuint source, ALenum param, ALdouble value)
 
AL_API ALvoid AL_APIENTRY alSourcedvSOFT (ALuint source, ALenum param, const ALdouble *values)
 
AL_API ALvoid AL_APIENTRY alSourcef (ALuint source, ALenum param, ALfloat value)
 
AL_API ALvoid AL_APIENTRY alSourcefv (ALuint source, ALenum param, const ALfloat *values)
 
AL_API ALvoid AL_APIENTRY alSourcei (ALuint source, ALenum param, ALint value)
 
AL_API ALvoid AL_APIENTRY alSourcei64SOFT (ALuint source, ALenum param, ALint64SOFT value)
 
AL_API void AL_APIENTRY alSourcei64vSOFT (ALuint source, ALenum param, const ALint64SOFT *values)
 
AL_API void AL_APIENTRY alSourceiv (ALuint source, ALenum param, const ALint *values)
 
AL_API ALvoid AL_APIENTRY alSourcePause (ALuint source)
 
AL_API ALvoid AL_APIENTRY alSourcePausev (ALsizei n, const ALuint *sources)
 
AL_API ALvoid AL_APIENTRY alSourcePlay (ALuint source)
 
AL_API ALvoid AL_APIENTRY alSourcePlayv (ALsizei n, const ALuint *sources)
 
AL_API ALvoid AL_APIENTRY alSourceQueueBuffers (ALuint source, ALsizei nb, const ALuint *buffers)
 
AL_API ALvoid AL_APIENTRY alSourceRewind (ALuint source)
 
AL_API ALvoid AL_APIENTRY alSourceRewindv (ALsizei n, const ALuint *sources)
 
AL_API ALvoid AL_APIENTRY alSourceStop (ALuint source)
 
AL_API ALvoid AL_APIENTRY alSourceStopv (ALsizei n, const ALuint *sources)
 
AL_API ALvoid AL_APIENTRY alSourceUnqueueBuffers (ALuint source, ALsizei nb, ALuint *buffers)
 
ALboolean ApplyOffset (ALsource *Source)
 
static ALint DoubleValsByProp (ALenum prop)
 
static ALint FloatValsByProp (ALenum prop)
 
static ALint GetSampleOffset (ALsource *Source)
 
static ALenum GetSourcedv (const ALsource *Source, ALCcontext *Context, SrcFloatProp prop, ALdouble *values)
 
static ALenum GetSourcei64v (const ALsource *Source, ALCcontext *Context, SrcIntProp prop, ALint64 *values)
 
static ALenum GetSourceiv (const ALsource *Source, ALCcontext *Context, SrcIntProp prop, ALint *values)
 
static ALint64 GetSourceOffset (const ALsource *Source)
 
static ALvoid GetSourceOffsets (const ALsource *Source, ALenum name, ALdouble *offsets, ALdouble updateLen)
 
static ALdouble GetSourceSecOffset (const ALsource *Source)
 
static ALvoid InitSourceParams (ALsource *Source)
 
static ALint Int64ValsByProp (ALenum prop)
 
static ALint IntValsByProp (ALenum prop)
 
ALvoid ReleaseALSources (ALCcontext *Context)
 
static ALenum SetSourcefv (ALsource *Source, ALCcontext *Context, SrcFloatProp prop, const ALfloat *values)
 
static ALenum SetSourcei64v (ALsource *Source, ALCcontext *Context, SrcIntProp prop, const ALint64SOFT *values)
 
static ALenum SetSourceiv (ALsource *Source, ALCcontext *Context, SrcIntProp prop, const ALint *values)
 
ALvoid SetSourceState (ALsource *Source, ALCcontext *Context, ALenum state)
 

Variables

enum Resampler DefaultResampler = LinearResampler
 
const ALsizei ResamplerPadding [ResamplerMax]
 
const ALsizei ResamplerPrePadding [ResamplerMax]
 

Macro Definition Documentation

#define CHECKVAL (   x)
Value:
do { \
if(!(x)) \
} while(0)
#define AL_INVALID_VALUE
Definition: al.h:373
EGLSurface EGLint x
Definition: eglext.h:293
if(!yyg->yy_init)
#define RETERR(x)
Definition: alSource.c:347

Definition at line 352 of file alSource.c.

Referenced by SetSourcefv(), SetSourcei64v(), and SetSourceiv().

#define RETERR (   x)
Value:
do { \
alSetError(Context, (x)); \
return (x); \
} while(0)
return
Definition: pngrutil.c:1266
EGLSurface EGLint x
Definition: eglext.h:293
ALvoid alSetError(ALCcontext *Context, ALenum errorCode)
Definition: alError.c:31

Definition at line 347 of file alSource.c.

Referenced by GetSourcedv(), GetSourcei64v(), GetSourceiv(), SetSourcefv(), SetSourcei64v(), and SetSourceiv().

Typedef Documentation

typedef enum SrcFloatProp SrcFloatProp
typedef enum SrcIntProp SrcIntProp

Enumeration Type Documentation

Enumerator
sfPitch 
sfGain 
sfMinGain 
sfMaxGain 
sfMaxDistance 
sfRolloffFactor 
sfDopplerFactor 
sfConeOuterGain 
sfSecOffset 
sfSampleOffset 
sfByteOffset 
sfConeInnerAngle 
sfConeOuterAngle 
sfRefDistance 
sfPosition 
sfVelocity 
sfDirection 
sfSourceRelative 
sfLooping 
sfBuffer 
sfSourceState 
sfBuffersQueued 
sfBuffersProcessed 
sfSourceType 
sfConeOuterGainHF 
sfAirAbsorptionFactor 
sfRoomRolloffFactor 
sfDirectFilterGainHFAuto 
sfAuxSendFilterGainAuto 
sfAuxSendFilterGainHFAuto 
sfDirectChannelsSOFT 
sfDistanceModel 
sfSampleRWOffsetsSOFT 
sfByteRWOffsetsSOFT 
sfSecOffsetLatencySOFT 

Definition at line 56 of file alSource.c.

enum SrcIntProp
Enumerator
siMaxDistance 
siRolloffFactor 
siRefDistance 
siSourceRelative 
siConeInnerAngle 
siConeOuterAngle 
siLooping 
siBuffer 
siSourceState 
siBuffersQueued 
siBuffersProcessed 
siSourceType 
siSecOffset 
siSampleOffset 
siByteOffset 
siDopplerFactor 
siPosition 
siVelocity 
siDirection 
siDirectFilterGainHFAuto 
siAuxSendFilterGainAutio 
siAuxSendFilterGainHFAuto 
siDirectFilter 
siAuxSendFilter 
siDirectChannelsSOFT 
siDistanceModel 
siSampleRWOffsetsSOFT 
siByteRWOffsetsSOFT 
siSampleOffsetLatencySOFT 

Definition at line 106 of file alSource.c.

Function Documentation

AL_API void AL_APIENTRY alGetSource3dSOFT ( ALuint  source,
ALenum  param,
ALdouble value1,
ALdouble value2,
ALdouble value3 
)
AL_API ALvoid AL_APIENTRY alGetSource3f ( ALuint  source,
ALenum  param,
ALfloat value1,
ALfloat value2,
ALfloat value3 
)
AL_API void AL_APIENTRY alGetSource3i ( ALuint  source,
ALenum  param,
ALint value1,
ALint value2,
ALint value3 
)
AL_API void AL_APIENTRY alGetSource3i64SOFT ( ALuint  source,
ALenum  param,
ALint64SOFT value1,
ALint64SOFT value2,
ALint64SOFT value3 
)
AL_API ALvoid AL_APIENTRY alGetSourcef ( ALuint  source,
ALenum  param,
ALfloat value 
)
AL_API ALvoid AL_APIENTRY alGetSourcei ( ALuint  source,
ALenum  param,
ALint value 
)
AL_API ALboolean AL_APIENTRY alIsSource ( ALuint  source)

Verify a handle is a valid Source.

Definition at line 1334 of file alSource.c.

References AL_FALSE, AL_TRUE, ALCcontext_DecRef(), GetContextRef(), and LookupSource.

AL_API ALvoid AL_APIENTRY alSource3dSOFT ( ALuint  source,
ALenum  param,
ALdouble  value1,
ALdouble  value2,
ALdouble  value3 
)
AL_API ALvoid AL_APIENTRY alSource3f ( ALuint  source,
ALenum  param,
ALfloat  value1,
ALfloat  value2,
ALfloat  value3 
)
AL_API void AL_APIENTRY alSource3i ( ALuint  source,
ALenum  param,
ALint  value1,
ALint  value2,
ALint  value3 
)
AL_API void AL_APIENTRY alSource3i64SOFT ( ALuint  source,
ALenum  param,
ALint64SOFT  value1,
ALint64SOFT  value2,
ALint64SOFT  value3 
)
AL_API ALvoid AL_APIENTRY alSourcef ( ALuint  source,
ALenum  param,
ALfloat  value 
)
AL_API ALvoid AL_APIENTRY alSourcei ( ALuint  source,
ALenum  param,
ALint  value 
)
AL_API ALvoid AL_APIENTRY alSourcePause ( ALuint  source)

Pause a Source

Definition at line 1949 of file alSource.c.

References alSourcePausev().

AL_API ALvoid AL_APIENTRY alSourcePlay ( ALuint  source)

Play, replay, or resume a Source

Definition at line 1894 of file alSource.c.

References alSourcePlayv().

Referenced by main(), StartPlayer(), and UpdatePlayer().

AL_API ALvoid AL_APIENTRY alSourceRewind ( ALuint  source)

Rewind a Source (set playback postiton to beginning)

Definition at line 2021 of file alSource.c.

References alSourceRewindv().

Referenced by StartPlayer().

AL_API ALvoid AL_APIENTRY alSourceStop ( ALuint  source)

Stop a Source

Definition at line 1985 of file alSource.c.

References alSourceStopv().

static ALenum GetSourcedv ( const ALsource Source,
ALCcontext Context,
SrcFloatProp  prop,
ALdouble values 
)
static

Definition at line 867 of file alSource.c.

References ALsource::AirAbsorptionFactor, AL_AIR_ABSORPTION_FACTOR, AL_AUXILIARY_SEND_FILTER_GAIN_AUTO, AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO, AL_BUFFER, AL_BUFFERS_PROCESSED, AL_BUFFERS_QUEUED, AL_BYTE_OFFSET, AL_BYTE_RW_OFFSETS_SOFT, AL_CONE_INNER_ANGLE, AL_CONE_OUTER_ANGLE, AL_CONE_OUTER_GAIN, AL_CONE_OUTER_GAINHF, AL_DIRECT_CHANNELS_SOFT, AL_DIRECT_FILTER_GAINHF_AUTO, AL_DIRECTION, AL_DISTANCE_MODEL, AL_DOPPLER_FACTOR, AL_GAIN, AL_INVALID_ENUM, AL_LOOPING, AL_MAX_DISTANCE, AL_MAX_GAIN, AL_MIN_GAIN, AL_NO_ERROR, AL_PITCH, AL_POSITION, AL_REFERENCE_DISTANCE, AL_ROLLOFF_FACTOR, AL_ROOM_ROLLOFF_FACTOR, AL_SAMPLE_OFFSET, AL_SAMPLE_RW_OFFSETS_SOFT, AL_SEC_OFFSET, AL_SEC_OFFSET_LATENCY_SOFT, AL_SOURCE_RELATIVE, AL_SOURCE_STATE, AL_SOURCE_TYPE, AL_VELOCITY, ALCdevice_GetLatency, ALCcontext_struct::Device, ALsource::DopplerFactor, ERR, ALCdevice_struct::Frequency, ALsource::Gain, GetSourceiv(), GetSourceOffsets(), GetSourceSecOffset(), ALsource::InnerAngle, LockContext(), ALsource::MaxDistance, ALsource::MaxGain, ALsource::MinGain, ALsource::Orientation, ALsource::OuterAngle, ALsource::OuterGain, ALsource::OuterGainHF, ALsource::Pitch, ALsource::Position, ALsource::RefDistance, RETERR, ALsource::RollOffFactor, ALsource::RoomRolloffFactor, UnlockContext(), ALCdevice_struct::UpdateSize, and ALsource::Velocity.

Referenced by alGetSource3dSOFT(), alGetSource3f(), alGetSourcedSOFT(), alGetSourcedvSOFT(), alGetSourcef(), alGetSourcefv(), GetSourcei64v(), and GetSourceiv().

static ALenum SetSourcefv ( ALsource Source,
ALCcontext Context,
SrcFloatProp  prop,
const ALfloat values 
)
static

Definition at line 357 of file alSource.c.

References ALsource::AirAbsorptionFactor, AL_AIR_ABSORPTION_FACTOR, AL_BYTE_OFFSET, AL_CONE_INNER_ANGLE, AL_CONE_OUTER_ANGLE, AL_CONE_OUTER_GAIN, AL_CONE_OUTER_GAINHF, AL_DIRECTION, AL_DOPPLER_FACTOR, AL_FALSE, AL_GAIN, AL_INVALID_ENUM, AL_INVALID_OPERATION, AL_INVALID_VALUE, AL_MAX_DISTANCE, AL_MAX_GAIN, AL_MIN_GAIN, AL_NO_ERROR, AL_PAUSED, AL_PITCH, AL_PLAYING, AL_POSITION, AL_REFERENCE_DISTANCE, AL_ROLLOFF_FACTOR, AL_ROOM_ROLLOFF_FACTOR, AL_SAMPLE_OFFSET, AL_SEC_OFFSET, AL_SEC_OFFSET_LATENCY_SOFT, AL_TRUE, AL_VELOCITY, ApplyOffset(), CHECKVAL, ALCcontext_struct::DeferUpdates, ALsource::DopplerFactor, ERR, ALsource::Gain, ALsource::InnerAngle, LockContext(), ALsource::MaxDistance, ALsource::MaxGain, ALsource::MinGain, ALsource::NeedsUpdate, ALsource::Offset, ALsource::OffsetType, ALsource::Orientation, ALsource::OuterAngle, ALsource::OuterGain, ALsource::OuterGainHF, ALsource::Pitch, ALsource::Position, ALsource::RefDistance, RETERR, ALsource::RollOffFactor, ALsource::RoomRolloffFactor, SetSourceiv(), sfAuxSendFilterGainAuto, sfAuxSendFilterGainHFAuto, sfBuffer, sfBuffersProcessed, sfBuffersQueued, sfByteRWOffsetsSOFT, sfDirectChannelsSOFT, sfDirectFilterGainHFAuto, sfDistanceModel, sfLooping, sfSampleRWOffsetsSOFT, sfSourceRelative, sfSourceState, sfSourceType, ALsource::state, UnlockContext(), and ALsource::Velocity.

Referenced by alSource3dSOFT(), alSource3f(), alSourcedSOFT(), alSourcedvSOFT(), alSourcef(), alSourcefv(), SetSourcei64v(), and SetSourceiv().

static ALenum SetSourceiv ( ALsource Source,
ALCcontext Context,
SrcIntProp  prop,
const ALint values 
)
static

Definition at line 550 of file alSource.c.

References AL_AUXILIARY_SEND_FILTER, AL_AUXILIARY_SEND_FILTER_GAIN_AUTO, AL_AUXILIARY_SEND_FILTER_GAINHF_AUTO, AL_BUFFER, AL_BYTE_OFFSET, AL_CONE_INNER_ANGLE, AL_CONE_OUTER_ANGLE, AL_DIRECT_CHANNELS_SOFT, AL_DIRECT_FILTER, AL_DIRECT_FILTER_GAINHF_AUTO, AL_DIRECTION, AL_DISTANCE_MODEL, AL_EXPONENT_DISTANCE, AL_EXPONENT_DISTANCE_CLAMPED, AL_FALSE, AL_INITIAL, AL_INVALID_ENUM, AL_INVALID_OPERATION, AL_INVALID_VALUE, AL_INVERSE_DISTANCE, AL_INVERSE_DISTANCE_CLAMPED, AL_LINEAR_DISTANCE, AL_LINEAR_DISTANCE_CLAMPED, AL_LOOPING, AL_MAX_DISTANCE, AL_NO_ERROR, AL_NONE, AL_PAUSED, AL_PLAYING, AL_POSITION, AL_REFERENCE_DISTANCE, AL_ROLLOFF_FACTOR, AL_SAMPLE_OFFSET, AL_SEC_OFFSET, AL_SOURCE_RELATIVE, AL_STATIC, AL_STOPPED, AL_TRUE, AL_UNDETERMINED, AL_VELOCITY, ApplyOffset(), ALbufferlistitem::buffer, ALsource::BuffersInQueue, ALsource::BuffersPlayed, BytesFromFmt(), CalcNonAttnSourceParams(), CalcSourceParams(), ChannelsFromFmt(), CHECKVAL, ALCcontext_struct::DeferUpdates, ALCcontext_struct::Device, ALsource::DirectChannels, ALsource::DirectGain, ALsource::DirectGainHF, ALsource::DistanceModel, ALsource::DryGainHFAuto, ERR, ALbuffer::FmtChannels, FmtMono, ALbuffer::FmtType, free, ALfilter::Gain, ALsource::Gain, ALfilter::GainHF, ALsource::GainHF, ALsource::HeadRelative, ALbuffer::lock, LockContext(), LookupBuffer, LookupEffectSlot, LookupFilter, ALsource::Looping, malloc, ALsource::NeedsUpdate, ALbufferlistitem::next, NULL, ALCdevice_struct::NumAuxSends, ALsource::NumChannels, ALsource::Offset, ALsource::OffsetType, ALbufferlistitem::prev, ALsource::queue, ReadLock(), ReadUnlock(), ALeffectslot::ref, ALbuffer::ref, RETERR, ALsource::SampleSize, ALsource::Send, SetSourcefv(), siBuffersProcessed, siBuffersQueued, siByteRWOffsetsSOFT, siDopplerFactor, siSampleOffsetLatencySOFT, siSampleRWOffsetsSOFT, siSourceState, siSourceType, ALsource::Slot, ALCcontext_struct::SourceDistanceModel, ALsource::SourceType, ALsource::state, UnlockContext(), ALsource::Update, ALsource::WetGainAuto, and ALsource::WetGainHFAuto.

Referenced by alSource3i(), alSourcei(), alSourceiv(), SetSourcefv(), and SetSourcei64v().

Variable Documentation

enum Resampler DefaultResampler = LinearResampler

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 37 of file alSource.c.

Referenced by alc_initconfig(), and InitSourceParams().

const ALsizei ResamplerPadding[ResamplerMax]
Initial value:
= {
0,
1,
2,
}

Definition at line 38 of file alSource.c.

Referenced by CalcNonAttnSourceParams(), CalcSourceParams(), and MixSource().

const ALsizei ResamplerPrePadding[ResamplerMax]
Initial value:
= {
0,
0,
1,
}

Definition at line 43 of file alSource.c.

Referenced by CalcNonAttnSourceParams(), CalcSourceParams(), and MixSource().