Closed sylae closed 6 months ago
Thanks, I've fixed this bug for the next release.
Also, I've added Audio::LoadSampleFromAbsolutePath
to do what you're trying to do here, more efficiently. Your current code will load the file into memory twice which is not ideal.
not the end of the world but it'd be nice to check magic or something to verify a file is what the extension says it is, or at least gracefully fail (ie in the above example, setting
@bonkSound
to null as it does if the file doesnt exist).