zenilib
0.5.3.0
|
#include <stdio.h>
#include <assert.h>
#include <unistd.h>
#include "AL/al.h"
#include "AL/alc.h"
#include "AL/alext.h"
#include "AL/efx-presets.h"
#include "common/alhelpers.h"
#include "common/alffmpeg.h"
Go to the source code of this file.
Macros | |
#define | LOAD_PROC(x) ((x) = alGetProcAddress(#x)) |
#define | Sleep(x) usleep((x)*1000) |
Functions | |
static ALuint | LoadEffect (const EFXEAXREVERBPROPERTIES *reverb) |
static ALuint | LoadSound (const char *filename) |
int | main (int argc, char **argv) |
#define LOAD_PROC | ( | x | ) | ((x) = alGetProcAddress(#x)) |
Referenced by main().
Definition at line 34 of file alreverb.c.
|
static |
Definition at line 78 of file alreverb.c.
References AL_EAXREVERB_AIR_ABSORPTION_GAINHF, AL_EAXREVERB_DECAY_HFLIMIT, AL_EAXREVERB_DECAY_HFRATIO, AL_EAXREVERB_DECAY_LFRATIO, AL_EAXREVERB_DECAY_TIME, AL_EAXREVERB_DENSITY, AL_EAXREVERB_DIFFUSION, AL_EAXREVERB_ECHO_DEPTH, AL_EAXREVERB_ECHO_TIME, AL_EAXREVERB_GAIN, AL_EAXREVERB_GAINHF, AL_EAXREVERB_GAINLF, AL_EAXREVERB_HFREFERENCE, AL_EAXREVERB_LATE_REVERB_DELAY, AL_EAXREVERB_LATE_REVERB_GAIN, AL_EAXREVERB_LATE_REVERB_PAN, AL_EAXREVERB_LFREFERENCE, AL_EAXREVERB_MODULATION_DEPTH, AL_EAXREVERB_MODULATION_TIME, AL_EAXREVERB_REFLECTIONS_DELAY, AL_EAXREVERB_REFLECTIONS_GAIN, AL_EAXREVERB_REFLECTIONS_PAN, AL_EAXREVERB_ROOM_ROLLOFF_FACTOR, AL_EFFECT_EAXREVERB, AL_EFFECT_REVERB, AL_EFFECT_TYPE, AL_NO_ERROR, AL_REVERB_AIR_ABSORPTION_GAINHF, AL_REVERB_DECAY_HFLIMIT, AL_REVERB_DECAY_HFRATIO, AL_REVERB_DECAY_TIME, AL_REVERB_DENSITY, AL_REVERB_DIFFUSION, AL_REVERB_GAIN, AL_REVERB_GAINHF, AL_REVERB_LATE_REVERB_DELAY, AL_REVERB_LATE_REVERB_GAIN, AL_REVERB_REFLECTIONS_DELAY, AL_REVERB_REFLECTIONS_GAIN, AL_REVERB_ROOM_ROLLOFF_FACTOR, alDeleteEffects, alEffectf, alEffectfv, alEffecti, alGenEffects, alGetEnumValue(), alGetError(), alGetString(), alIsEffect, EFXEAXREVERBPROPERTIES::flAirAbsorptionGainHF, EFXEAXREVERBPROPERTIES::flDecayHFRatio, EFXEAXREVERBPROPERTIES::flDecayLFRatio, EFXEAXREVERBPROPERTIES::flDecayTime, EFXEAXREVERBPROPERTIES::flDensity, EFXEAXREVERBPROPERTIES::flDiffusion, EFXEAXREVERBPROPERTIES::flEchoDepth, EFXEAXREVERBPROPERTIES::flEchoTime, EFXEAXREVERBPROPERTIES::flGain, EFXEAXREVERBPROPERTIES::flGainHF, EFXEAXREVERBPROPERTIES::flGainLF, EFXEAXREVERBPROPERTIES::flHFReference, EFXEAXREVERBPROPERTIES::flLateReverbDelay, EFXEAXREVERBPROPERTIES::flLateReverbGain, EFXEAXREVERBPROPERTIES::flLateReverbPan, EFXEAXREVERBPROPERTIES::flLFReference, EFXEAXREVERBPROPERTIES::flModulationDepth, EFXEAXREVERBPROPERTIES::flModulationTime, EFXEAXREVERBPROPERTIES::flReflectionsDelay, EFXEAXREVERBPROPERTIES::flReflectionsGain, EFXEAXREVERBPROPERTIES::flReflectionsPan, EFXEAXREVERBPROPERTIES::flRoomRolloffFactor, and EFXEAXREVERBPROPERTIES::iDecayHFLimit.
Referenced by main().
Definition at line 156 of file alreverb.c.
References AL_NO_ERROR, AL_NONE, alBufferSamplesSOFT, alDeleteBuffers(), alGenBuffers(), alGetError(), alGetString(), alIsBuffer(), alIsBufferFormatSupportedSOFT, BytesToFrames(), ChannelsName(), closeAVFile(), decodeAVAudioStream(), free, getAVAudioInfo(), getAVAudioStream(), GetFormat(), openAVFile(), and TypeName().
Referenced by main().
Definition at line 224 of file alreverb.c.
References AL_AUXILIARY_SEND_FILTER, AL_BUFFER, AL_EFFECTSLOT_EFFECT, AL_FILTER_NULL, AL_NO_ERROR, AL_PLAYING, AL_SOURCE_STATE, alAuxiliaryEffectSlotf, alAuxiliaryEffectSlotfv, alAuxiliaryEffectSloti, alAuxiliaryEffectSlotiv, alBufferSamplesSOFT, alcGetContextsDevice(), alcGetCurrentContext(), alcIsExtensionPresent(), alDeleteAuxiliaryEffectSlots, alDeleteBuffers(), alDeleteEffects, alDeleteSources(), alEffectf, alEffectfv, alEffecti, alEffectiv, alGenAuxiliaryEffectSlots, alGenEffects, alGenSources(), alGetAuxiliaryEffectSlotf, alGetAuxiliaryEffectSlotfv, alGetAuxiliaryEffectSloti, alGetAuxiliaryEffectSlotiv, alGetEffectf, alGetEffectfv, alGetEffecti, alGetEffectiv, alGetError(), alGetSourcei(), alIsAuxiliaryEffectSlot, alIsBufferFormatSupportedSOFT, alIsEffect, alIsExtensionPresent(), alSource3i(), alSourcei(), alSourcePlay(), assert, CloseAL(), EFX_REVERB_PRESET_GENERIC, InitAL(), LOAD_PROC, LoadEffect(), LoadSound(), and Sleep.
LPALAUXILIARYEFFECTSLOTF alAuxiliaryEffectSlotf |
Definition at line 68 of file alreverb.c.
Referenced by alAuxiliaryEffectSlotfv(), and main().
LPALAUXILIARYEFFECTSLOTFV alAuxiliaryEffectSlotfv |
Definition at line 69 of file alreverb.c.
Referenced by main().
LPALAUXILIARYEFFECTSLOTI alAuxiliaryEffectSloti |
Definition at line 66 of file alreverb.c.
Referenced by alAuxiliaryEffectSlotiv(), and main().
LPALAUXILIARYEFFECTSLOTIV alAuxiliaryEffectSlotiv |
Definition at line 67 of file alreverb.c.
Referenced by main().
LPALBUFFERSAMPLESSOFT alBufferSamplesSOFT = wrap_BufferSamples |
Definition at line 46 of file alreverb.c.
LPALDELETEAUXILIARYEFFECTSLOTS alDeleteAuxiliaryEffectSlots |
Definition at line 64 of file alreverb.c.
Referenced by alGenAuxiliaryEffectSlots(), and main().
LPALDELETEEFFECTS alDeleteEffects |
Definition at line 51 of file alreverb.c.
Referenced by alGenEffects(), LoadEffect(), and main().
LPALEFFECTF alEffectf |
Definition at line 55 of file alreverb.c.
Referenced by LoadEffect(), and main().
LPALEFFECTFV alEffectfv |
Definition at line 56 of file alreverb.c.
Referenced by LoadEffect(), and main().
LPALEFFECTI alEffecti |
Definition at line 53 of file alreverb.c.
Referenced by alEffectiv(), LoadEffect(), and main().
LPALEFFECTIV alEffectiv |
Definition at line 54 of file alreverb.c.
Referenced by main().
LPALGENAUXILIARYEFFECTSLOTS alGenAuxiliaryEffectSlots |
Definition at line 63 of file alreverb.c.
Referenced by main().
LPALGENEFFECTS alGenEffects |
Definition at line 50 of file alreverb.c.
Referenced by LoadEffect(), and main().
LPALGETAUXILIARYEFFECTSLOTF alGetAuxiliaryEffectSlotf |
Definition at line 72 of file alreverb.c.
Referenced by alGetAuxiliaryEffectSlotfv(), and main().
LPALGETAUXILIARYEFFECTSLOTFV alGetAuxiliaryEffectSlotfv |
Definition at line 73 of file alreverb.c.
Referenced by main().
LPALGETAUXILIARYEFFECTSLOTI alGetAuxiliaryEffectSloti |
Definition at line 70 of file alreverb.c.
Referenced by alGetAuxiliaryEffectSlotiv(), and main().
LPALGETAUXILIARYEFFECTSLOTIV alGetAuxiliaryEffectSlotiv |
Definition at line 71 of file alreverb.c.
Referenced by main().
LPALGETEFFECTF alGetEffectf |
Definition at line 59 of file alreverb.c.
Referenced by main().
LPALGETEFFECTFV alGetEffectfv |
Definition at line 60 of file alreverb.c.
Referenced by main().
LPALGETEFFECTI alGetEffecti |
Definition at line 57 of file alreverb.c.
Referenced by alGetEffectiv(), and main().
LPALGETEFFECTIV alGetEffectiv |
Definition at line 58 of file alreverb.c.
Referenced by main().
LPALISAUXILIARYEFFECTSLOT alIsAuxiliaryEffectSlot |
Definition at line 65 of file alreverb.c.
Referenced by main().
LPALISBUFFERFORMATSUPPORTEDSOFT alIsBufferFormatSupportedSOFT |
Definition at line 47 of file alreverb.c.
LPALISEFFECT alIsEffect |
Definition at line 52 of file alreverb.c.
Referenced by LoadEffect(), and main().