Skip to content

Commit

Permalink
MP3Player: More cleanups
Browse files Browse the repository at this point in the history
Tons of stuff we don't really need here. And remove Equalizer
for real this time, by getting some adjustments from the
'SeekableJLayer' repo on github.
  • Loading branch information
AShiningRay committed Nov 16, 2024
1 parent a439f2d commit de7ceb0
Show file tree
Hide file tree
Showing 10 changed files with 797 additions and 1,741 deletions.
57 changes: 0 additions & 57 deletions src/javax/microedition/media/javazoom/jl/decoder/Control.java

This file was deleted.

7 changes: 2 additions & 5 deletions src/javax/microedition/media/javazoom/jl/decoder/Decoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ public class Decoder implements DecoderErrors

private int outputFrequency;
private int outputChannels;

private Equalizer equalizer = new Equalizer();

private boolean initialized;

Expand Down Expand Up @@ -231,11 +229,10 @@ private void initialize(Header header)
if (output==null)
output = new SampleBuffer(header.frequency(), channels);

float[] factors = equalizer.getBandFactors();
filter1 = new SynthesisFilter(0, scalefactor, factors);
filter1 = new SynthesisFilter(0);

// REVIEW: allow mono output for stereo
if (channels==2) { filter2 = new SynthesisFilter(1, scalefactor, factors); }
if (channels==2) { filter2 = new SynthesisFilter(1); }

outputChannels = channels;
outputFrequency = header.frequency();
Expand Down
227 changes: 0 additions & 227 deletions src/javax/microedition/media/javazoom/jl/decoder/Equalizer.java

This file was deleted.

This file was deleted.

Loading

0 comments on commit de7ceb0

Please sign in to comment.