Open TemariVirus opened 5 months ago
Sorry for missing this.
I have a hunch it could be fixed already in sysaudio
, but the example is not yet updated to use the latest version of sysaudio
.
I suspect once https://github.com/hexops/mach/issues/1170 is closed that this will work.
I'll ping you once you can test again if that's alright :)
Expected behaviour: running
zig build run-example
playstime.opus
on loop without error Actual behaviour: after a few seconds of playing normally, it crashes with this error:The error seems to be caused by samples 605716 to 605725 of the decoded sound file:
{ 1.00861, 0.03097, 1.01480, 0.02588, 1.01671, 0.02050, 1.01438, 0.01490, 1.00786 }
Some of the values are >= 1, causing an overflow when converting from f32 to i16. To make sure that this isn't an issue with
time.opus
, I tried to play another file and encountered the same error (both files play fine on Window's Media Player).I'm running Windows 11 with Zig 2024.1.0-mach