Revision ceed2df6
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/main/DistortedEffects.java | ||
---|---|---|
104 | 104 |
|
105 | 105 |
for( int i=0; i<EffectType.LENGTH; i++) |
106 | 106 |
{ |
107 |
aborted += mQueues[i].abortAll(true);
|
|
107 |
aborted += mQueues[i].removeAll(true);
|
|
108 | 108 |
} |
109 | 109 |
|
110 | 110 |
return aborted; |
... | ... | |
120 | 120 |
public int abortByType(EffectType type) |
121 | 121 |
{ |
122 | 122 |
int num = type.ordinal(); |
123 |
return mQueues[num].abortAll(true);
|
|
123 |
return mQueues[num].removeAll(true);
|
|
124 | 124 |
} |
125 | 125 |
|
126 | 126 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Change abortAll to removeAll in effectQueues (for consistency)
Remove all pre-effects from the component queues when they are not used anymore.