I’m trying to open a wav file in a buffer and keep getting errors saying SC can’t open or find the file.
This is on Windows 10 so I use the \ in the file directory. In the error message SC shows the whole directory without any ‘’ to separate things, I tried adding the Platform.resourceDir +/+ before the file path and still got the same errors.
I also tried changing the \ to a / and same error.
I tried making the \ a double \ and then when I got the error it shows the file path with \ in between the proper places but it still can’t open the file.
The code is as follows:
b = Buffer.readChannel(s,“C:\Users\44774\Desktop\Autobot\wubsquare8.wav”, startFrame:0, numFrames: -1);
I initially had not included the start and end frames and tried adding them to see if that was what was causing the error.
I’m guessing this is just some sort of syntax error on my part??
I’m using SC version 3.11.2
Any help would be greatly appreciated!