-
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
Description
java-stream-player/src/main/java/com/goxr3plus/streamplayer/stream/StreamPlayer.java
Lines 1250 to 1257 in 6a00a79
public void setEqualizer(final float[] array, final int stop) { | |
if (!isPausedOrPlaying() || !(audioInputStream instanceof PropertiesContainer)) | |
return; | |
// Map<?, ?> map = ((PropertiesContainer) audioInputStream).properties() | |
final float[] equalizer = (float[]) ((PropertiesContainer) audioInputStream).properties().get("mp3.equalizer"); | |
if (stop >= 0) System.arraycopy(array, 0, equalizer, 0, stop); | |
} |
I can't see that this method has any side effect, desired or not. It copies an array passed to it, into a local variable, and when the method goes out of scope, the copy is lost.
What is the intention with the method? If it never has worked as intended, maybe it should be removed.