I have begun delving into the low-level API and have so far recreated the net_stream example in Unity and added some DSP effects onto this.
I am now wanting to create a sound to be placed in the world but am getting an ERR_INVALID_PARAM.
Here is the section of code:
string absolutePath = Path.GetFullPath(file);
CREATESOUNDEXINFO exInfo = new CREATESOUNDEXINFO();
result = system.createSound(absolutePath, MODE.CREATESTREAM, ref exInfo, out sound);
I have tried using MODE.DEFAULT as well as messing around a little with the exInfo but to no success. I’m thinking it’s something to do with the file path but feel I am missing something.
Oh, and using the same file (full path, not the file name) in the play_sound example gives the same error.
Any help will be greatly appreciated!