#ifndef _AL_SOURCE_H_ #define _AL_SOURCE_H_ #define MAX_SENDS 4 #include "alMain.h" #include "alu.h" #include "alFilter.h" #include "alBuffer.h" #include "hrtf.h" #ifdef __cplusplus extern "C" { #endif #define SRC_HISTORY_BITS (6) #define SRC_HISTORY_LENGTH (1<Update(s,a)) inline struct ALsource *LookupSource(ALCcontext *context, ALuint id) { return (struct ALsource*)LookupUIntMapKey(&context->SourceMap, id); } inline struct ALsource *RemoveSource(ALCcontext *context, ALuint id) { return (struct ALsource*)RemoveUIntMapKey(&context->SourceMap, id); } ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state); ALboolean ApplyOffset(ALsource *Source); ALvoid ReleaseALSources(ALCcontext *Context); #ifdef __cplusplus } #endif #endif