Open mlugg opened 4 years ago
I do get the same behaviour from the AudioExample.hs example
Works on Ubuntu 21.10. GHC 8.10 through 9.2.
I can't hear the 50hz 8bit sine, but the other tones sound fine and no crashes.
AudioExample works too.
For some reason we get this rather than the requested
Signed8BitAudio
?
I get Signed8Bit (and had to change element type to Int8).
Hi, I'm trying to use the SDL 2 bindings to play basic audio, and am encountering some odd errors. I have a small test program which is quite similar to AudioExample, but I'm having random crashes on it. My source code is below. The errors are not consistent; sometimes the audio will play for a second and the program will gracefully exit as expected, other times it segfaults partway through, and occasionally I get GHC errors like the following:
audio: internal error: scavenge: unimplemented/strange closure type 4325385 @ 0x42001f7530 (GHC version 8.6.5 for x86_64_unknown_linux) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Aborted
Note that if I replace
take n wave
in the following code with something likereplicate n 128
, the program does not crash.I have not tested the actual AudioExample example code on my system yet; I'll do that shortly and update this issue with the results.