diff options
author | Chris Robinson <[email protected]> | 2018-01-16 18:07:59 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-16 18:07:59 -0800 |
commit | 248832b26680de4ce48bf17076287a07dbd36ff7 (patch) | |
tree | 883a6685549357f5cd5b6490bdb9bf7c03985cf1 /Alc/mixer.c | |
parent | bf8c889631f48f9112987eb0f26e7c6eaa2429aa (diff) |
Use a voice flag to indicate it being static
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r-- | Alc/mixer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index a63bd909..8f946f6d 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -276,7 +276,7 @@ static const ALfloat *DoFilters(ALfilterState *lpfilter, ALfilterState *hpfilter #define RESAMPLED_BUF 1 #define FILTERED_BUF 2 #define NFC_DATA_BUF 3 -ALboolean MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALsizei SamplesToDo) +ALboolean MixSource(ALvoice *voice, ALCdevice *Device, ALsizei SamplesToDo) { ALbufferlistitem *BufferListItem; ALbufferlistitem *BufferLoopItem; @@ -297,7 +297,7 @@ ALboolean MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALsizei /* Get source info */ isplaying = true; /* Will only be called while playing. */ - isstatic = Source->SourceType == AL_STATIC; + isstatic = !!(voice->Flags&VOICE_IS_STATIC); DataPosInt = ATOMIC_LOAD(&voice->position, almemory_order_acquire); DataPosFrac = ATOMIC_LOAD(&voice->position_fraction, almemory_order_relaxed); BufferListItem = ATOMIC_LOAD(&voice->current_buffer, almemory_order_relaxed); |