Skip to content

Commit

Permalink
fix one more finding
Browse files Browse the repository at this point in the history
  • Loading branch information
samypr100 committed Sep 21, 2024
1 parent 1305d53 commit bde8a51
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/edu/jhuapl/trinity/data/audio/WaveDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* #L%
*/

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.BufferedInputStream;
Expand All @@ -35,6 +36,8 @@
*/
public class WaveDecoder implements Decoder {

private static final Logger LOG = LoggerFactory.getLogger(WaveDecoder.class);

/**
* inverse max short value as float *
*/
Expand Down Expand Up @@ -96,8 +99,7 @@ public WaveDecoder(InputStream stream) throws Exception {
sampleRate = in.readIntLittleEndian();
if (sampleRate != 44100) {
//throw new IllegalArgumentException("Not 44100 sampling rate");
LoggerFactory.getLogger(WaveDecoder.class).warn(
"Not 44100 sampling rate.\nSome functions may not behave.");
LOG.warn("Not 44100 sampling rate.\nSome functions may not behave.");
}
in.readIntLittleEndian();
in.readShortLittleEndian();
Expand Down

0 comments on commit bde8a51

Please sign in to comment.