diff options
author | Chris Robinson <[email protected]> | 2013-12-29 00:34:58 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-29 00:34:58 -0800 |
commit | 09665715ed0c0897834279dcc3f15c24ed01ec2d (patch) | |
tree | 9267920477144a2c332486846355c8ceeb4ce27f /OpenAL32/alFontsound.c | |
parent | 0d7996409ea300eab47fff096c2d3c5aea592a29 (diff) |
Add support for the fontsound loop mode
Diffstat (limited to 'OpenAL32/alFontsound.c')
-rw-r--r-- | OpenAL32/alFontsound.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenAL32/alFontsound.c b/OpenAL32/alFontsound.c index 663b1290..36f34570 100644 --- a/OpenAL32/alFontsound.c +++ b/OpenAL32/alFontsound.c @@ -152,6 +152,13 @@ AL_API void AL_APIENTRY alFontsoundiSOFT(ALuint id, ALenum param, ALint value) sound->SampleRate = value; break; + case AL_LOOP_MODE_SOFT: + if(!(value == AL_NONE || value == AL_LOOP_CONTINUOUS_SOFT || + value == AL_LOOP_UNTIL_RELEASE_SOFT)) + SET_ERROR_AND_GOTO(context, AL_INVALID_VALUE, done); + sound->LoopMode = value; + break; + case AL_BASE_KEY_SOFT: if(!((value >= 0 && value <= 127) || value == 255)) SET_ERROR_AND_GOTO(context, AL_INVALID_VALUE, done); @@ -248,6 +255,7 @@ AL_API void AL_APIENTRY alFontsoundivSOFT(ALuint id, ALenum param, const ALint * case AL_SAMPLE_LOOP_START_SOFT: case AL_SAMPLE_LOOP_END_SOFT: case AL_SAMPLE_RATE_SOFT: + case AL_LOOP_MODE_SOFT: case AL_BASE_KEY_SOFT: case AL_KEY_CORRECTION_SOFT: case AL_SAMPLE_TYPE_SOFT: @@ -318,6 +326,10 @@ AL_API void AL_APIENTRY alGetFontsoundivSOFT(ALuint id, ALenum param, ALint *val values[0] = sound->SampleRate; break; + case AL_LOOP_MODE_SOFT: + values[0] = sound->LoopMode; + break; + case AL_BASE_KEY_SOFT: values[0] = sound->PitchKey; break; |