Skip to content

Commit

Permalink
Make SoundModifiers implement SoundModifier to allow nesting groups o…
Browse files Browse the repository at this point in the history
…f sound modifiers
  • Loading branch information
RaphiMC committed Dec 11, 2024
1 parent b56a838 commit 4c556a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.List;
import java.util.function.Predicate;

public class SoundModifiers {
public class SoundModifiers implements SoundModifier {

protected final List<SoundModifier> soundModifiers = new ArrayList<>();

Expand All @@ -34,6 +34,7 @@ public SoundModifiers(final SoundModifier... modifiers) {
this.soundModifiers.addAll(Arrays.asList(modifiers));
}

@Override
public synchronized void modify(final AudioFormat audioFormat, final int[] renderedSamples) {
if (this.soundModifiers.isEmpty()) {
return;
Expand Down

0 comments on commit 4c556a0

Please sign in to comment.