diff options
author | Chris Robinson <[email protected]> | 2013-12-29 04:24:32 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-29 04:24:32 -0800 |
commit | 699d84491f2f01a95b8210ba7234dcebc8b4f817 (patch) | |
tree | d0221554417bb0609988417773e70f5817e145e6 /OpenAL32/alFontsound.c | |
parent | d030e078790ca24f977a888f53c11c129082abe8 (diff) |
Add pan and attenuation properties
Diffstat (limited to 'OpenAL32/alFontsound.c')
-rw-r--r-- | OpenAL32/alFontsound.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenAL32/alFontsound.c b/OpenAL32/alFontsound.c index 3eb6f675..c5b04970 100644 --- a/OpenAL32/alFontsound.c +++ b/OpenAL32/alFontsound.c @@ -160,6 +160,10 @@ AL_API void AL_APIENTRY alFontsoundiSOFT(ALuint id, ALenum param, ALint value) sound->ModEnvToFilterCutoff = value; break; + case AL_PAN_SOFT: + sound->Pan = value; + break; + case AL_MOD_ENV_DELAYTIME_SOFT: sound->ModEnv.DelayTime = value; break; @@ -210,6 +214,12 @@ AL_API void AL_APIENTRY alFontsoundiSOFT(ALuint id, ALenum param, ALint value) sound->VolEnv.KeyToDecayTime = value; break; + case AL_ATTENUATION_SOFT: + if(!(value >= 0)) + SET_ERROR_AND_GOTO(context, AL_INVALID_VALUE, done); + sound->Attenuation = value; + break; + case AL_TUNING_COARSE_SOFT: sound->CoarseTuning = value; break; @@ -348,6 +358,7 @@ AL_API void AL_APIENTRY alFontsoundivSOFT(ALuint id, ALenum param, const ALint * case AL_FILTER_RESONANCE_SOFT: case AL_MOD_LFO_TO_FILTER_CUTOFF_SOFT: case AL_MOD_ENV_TO_FILTER_CUTOFF_SOFT: + case AL_PAN_SOFT: case AL_MOD_ENV_DELAYTIME_SOFT: case AL_MOD_ENV_ATTACKTIME_SOFT: case AL_MOD_ENV_HOLDTIME_SOFT: @@ -364,6 +375,7 @@ AL_API void AL_APIENTRY alFontsoundivSOFT(ALuint id, ALenum param, const ALint * case AL_VOLUME_ENV_RELEASETIME_SOFT: case AL_VOLUME_ENV_KEY_TO_HOLDTIME_SOFT: case AL_VOLUME_ENV_KEY_TO_DECAYTIME_SOFT: + case AL_ATTENUATION_SOFT: case AL_TUNING_COARSE_SOFT: case AL_TUNING_FINE_SOFT: case AL_LOOP_MODE_SOFT: @@ -441,6 +453,10 @@ AL_API void AL_APIENTRY alGetFontsoundivSOFT(ALuint id, ALenum param, ALint *val values[0] = sound->ModEnvToFilterCutoff; break; + case AL_PAN_SOFT: + values[0] = sound->Pan; + break; + case AL_MOD_ENV_DELAYTIME_SOFT: values[0] = sound->ModEnv.DelayTime; break; @@ -501,6 +517,10 @@ AL_API void AL_APIENTRY alGetFontsoundivSOFT(ALuint id, ALenum param, ALint *val values[1] = sound->MaxVelocity; break; + case AL_ATTENUATION_SOFT: + values[0] = sound->Attenuation; + break; + case AL_TUNING_COARSE_SOFT: values[0] = sound->CoarseTuning; break; |