diff --git a/simpleaudio.d b/simpleaudio.d index 43f6b23..a09ac64 100644 --- a/simpleaudio.d +++ b/simpleaudio.d @@ -344,7 +344,7 @@ final class AudioPcmOutThread : Thread { if(frequencyCounter) frequencyCounter--; if(frequencyCounter == 0) { - val = -(val); + val = -cast(int)(val); frequencyCounter = currentSample.frequency / 2; } }