diff options
author | Santiago Seifert <[email protected]> | 2022-08-04 19:54:06 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-08-04 11:54:06 -0700 |
commit | c059ebf933ae4c6eeb26da50e168db2322e4790f (patch) | |
tree | d1051969af629744e0f8c2a1c7043e458035fc35 /src/main/java/com/jsyn/io/AudioFifo.java | |
parent | e23733c71b02458b53cbaaf8e370d07be001c560 (diff) |
Remove LOGGER references and a '== Double.NaN' check (#113)
LOGGER is not imported, and Double.NaN doesn't follow
traditional '==' comparison rules.
Diffstat (limited to 'src/main/java/com/jsyn/io/AudioFifo.java')
-rw-r--r-- | src/main/java/com/jsyn/io/AudioFifo.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/jsyn/io/AudioFifo.java b/src/main/java/com/jsyn/io/AudioFifo.java index b7321c6..5a87643 100644 --- a/src/main/java/com/jsyn/io/AudioFifo.java +++ b/src/main/java/com/jsyn/io/AudioFifo.java @@ -173,7 +173,7 @@ public class AudioFifo implements AudioInputStream, AudioOutputStream { int numRead = 0; for (int i = 0; mOpen && i < count; i++) { double value = read(); - if (value == Double.NaN) break; + if (Double.isNaN(value)) break; buffer[i + start] = value; numRead++; } |