diff options
author | Chris Robinson <[email protected]> | 2017-05-02 04:09:01 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-05-02 04:09:01 -0700 |
commit | 2f8d597f4ef3bcdfdad10edac2e9f74ddf3e23ff (patch) | |
tree | 890cea4418e12d51cc9bdd7cfaa3b09cfe901843 /OpenAL32 | |
parent | afe2065d60d211a8009909abc327eea8830c10f5 (diff) |
Rename 'moving' flag to 'fading'
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alu.h | 4 | ||||
-rw-r--r-- | OpenAL32/alSource.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index c6706bad..76b88a3f 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -221,8 +221,8 @@ struct ALvoiceProps { } Send[]; }; -/* If not 'moving', gain targets are used directly without fading. */ -#define VOICE_IS_MOVING (1<<0) +/* If not 'fading', gain targets are used directly without fading. */ +#define VOICE_IS_FADING (1<<0) #define VOICE_IS_HRTF (1<<1) #define VOICE_HAS_NFC (1<<2) diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 3720ce49..a1ba0ebc 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -2438,7 +2438,7 @@ AL_API ALvoid AL_APIENTRY alSourcePlayv(ALsizei n, const ALuint *sources) { ALbufferlistitem *BufferList; ALbuffer *buffer = NULL; - bool start_moving = false; + bool start_fading = false; ALsizei s; source = LookupSource(context, sources[i]); @@ -2481,11 +2481,11 @@ AL_API ALvoid AL_APIENTRY alSourcePlayv(ALsizei n, const ALuint *sources) case AL_PAUSED: assert(voice != NULL); /* A source that's paused simply resumes. Clear its mixing - * parameters and mark it as 'moving' so it fades in from + * parameters and mark it as 'fading' so it fades in from * silence. */ voice->Step = 0; - voice->Flags |= VOICE_IS_MOVING; + voice->Flags |= VOICE_IS_FADING; memset(voice->Direct.Params, 0, sizeof(voice->Direct.Params[0])* voice->NumChannels); for(s = 0;s < device->NumAuxSends;s++) @@ -2531,7 +2531,7 @@ AL_API ALvoid AL_APIENTRY alSourcePlayv(ALsizei n, const ALuint *sources) if(source->OffsetType != AL_NONE) { ApplyOffset(source, voice); - start_moving = ATOMIC_LOAD(&voice->position, almemory_order_relaxed) != 0 || + start_fading = ATOMIC_LOAD(&voice->position, almemory_order_relaxed) != 0 || ATOMIC_LOAD(&voice->position_fraction, almemory_order_relaxed) != 0 || ATOMIC_LOAD(&voice->current_buffer, almemory_order_relaxed) != BufferList; } @@ -2547,7 +2547,7 @@ AL_API ALvoid AL_APIENTRY alSourcePlayv(ALsizei n, const ALuint *sources) */ voice->Step = 0; - voice->Flags = start_moving ? VOICE_IS_MOVING : 0; + voice->Flags = start_fading ? VOICE_IS_FADING : 0; memset(voice->Direct.Params, 0, sizeof(voice->Direct.Params[0])*voice->NumChannels); for(s = 0;s < device->NumAuxSends;s++) memset(voice->Send[s].Params, 0, sizeof(voice->Send[s].Params[0])*voice->NumChannels); |