Skip to content

Audio_decoder from datastream error #387

Description

@MarcroSoft

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions