We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89c4f8b commit 472f3abCopy full SHA for 472f3ab
examples/AudioExample.hs
@@ -15,7 +15,7 @@ sinSamples =
15
let t = fromIntegral n / 48000 :: Double
16
freq = 440 * 4
17
in round (fromIntegral (maxBound `div` 2 :: Int16) * sin (t * freq)))
18
- [0 :: Integer ..]
+ [0 :: Int16 ..]
19
20
audioCB :: IORef [Int16] -> AudioFormat sampleType -> IOVector sampleType -> IO ()
21
audioCB samples format buffer =
0 commit comments