This script from tests:
// NonVisual Gaming Toolkit (NVGT)
// Copyright (C) 2022-2025 Sam Tupy
// License: zlib (see license.md in the root of the NVGT distribution)
void main() {
audio_decoder d;
if(!d.open(file("../data/audio/points.ogg", "rb"))) {
alert("can't open", SOUNDSYSTEM_LAST_ERROR);
exit();
}
sound s;
s.stream_pcm(d.read(1024 * 256), d.sample_rate, d.channels);
wait(1000);
}
Now returns a -10, I'm sure it worked some time ago but I can't remember when. What could cause this now?
Thanks,
Marc
This script from tests:
// NonVisual Gaming Toolkit (NVGT)
// Copyright (C) 2022-2025 Sam Tupy
// License: zlib (see license.md in the root of the NVGT distribution)
void main() {
audio_decoder d;
if(!d.open(file("../data/audio/points.ogg", "rb"))) {
alert("can't open", SOUNDSYSTEM_LAST_ERROR);
exit();
}
sound s;
s.stream_pcm(d.read(1024 * 256), d.sample_rate, d.channels);
wait(1000);
}
Now returns a -10, I'm sure it worked some time ago but I can't remember when. What could cause this now?
Thanks,
Marc