Closed mkruselj closed 11 months ago
The solution turned out to be a sort of a mix of options 1 and 3: read the packaged WAV file that we have as binary resource using Sublime's API, then writing it out to the unmanaged packages folder and reading it from there at runtime!
...because we're handing over actual filepaths that are residing inside the package, which normal Python
os
functions cannot read into. The sounds only play back when SublimeKSP is installed as an unmanaged (unpacked) package, for obvious reasons (the file magically becomes accessible!).Potential options:
sublime.load_binary_resource
to see if we can play audio from memory. Test on all three supported operating systems.