diff options
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++; } |