diff options
author | Chris Robinson <[email protected]> | 2010-08-15 00:19:38 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-08-15 00:19:38 -0700 |
commit | 2915d9dbd9c4a0575a94eb1f65a1fc47c866209c (patch) | |
tree | f70c6c580b4d792ca256e022d70164406110634d /OpenAL32 | |
parent | 0c49e5ba56bb9b944ea3a55ce34a7ecc69832f38 (diff) |
Use click removal to handle harsh panning/volume changes
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alSource.h | 6 | ||||
-rw-r--r-- | OpenAL32/alSource.c | 5 |
2 files changed, 1 insertions, 10 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index 9cee835b..c18b8629 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -81,12 +81,8 @@ typedef struct ALsource // Source Type (Static, Streaming, or Undetermined) ALint lSourceType; - // Current gains, which are ramped while mixed - ALfloat DryGains[OUTPUTCHANNELS]; - ALfloat WetGains[MAX_SENDS]; - ALboolean FirstStart; - // Current target parameters used for mixing + ALboolean FirstStart; ALboolean NeedsUpdate; struct { ALfloat DryGains[OUTPUTCHANNELS]; diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 5435e5d0..7e699816 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -1345,11 +1345,6 @@ AL_API ALvoid AL_APIENTRY alSourcePlayv(ALsizei n, const ALuint *sources) continue; } - for(j = 0;j < OUTPUTCHANNELS;j++) - Source->DryGains[j] = 0.0f; - for(j = 0;j < MAX_SENDS;j++) - Source->WetGains[j] = 0.0f; - if(Source->state != AL_PAUSED) { Source->state = AL_PLAYING; |