Skip to content

Commit 472f3ab

Browse files
afwlehmannpolarina
authored andcommitted
Fix warning in audio-example
1 parent 89c4f8b commit 472f3ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/AudioExample.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sinSamples =
1515
let t = fromIntegral n / 48000 :: Double
1616
freq = 440 * 4
1717
in round (fromIntegral (maxBound `div` 2 :: Int16) * sin (t * freq)))
18-
[0 :: Integer ..]
18+
[0 :: Int16 ..]
1919

2020
audioCB :: IORef [Int16] -> AudioFormat sampleType -> IOVector sampleType -> IO ()
2121
audioCB samples format buffer =

0 commit comments

Comments
 (0)