Hi,
I've modified the SampleLoader.h file to read raw data from a file instead of a wav file hardcoding the known sample rate and channels.
Now I'm trying to read the same raw data from a pipe instead of a file. I open the file (pipe), first thing in the "setup" and then I pass the file descriptor as a new argument to the functions in SampleLoader.h.
fd = open (gFilename.c_str(), O_RDONLY);
I'm using sf_open_fd to read from the pipe. It only complaints when I start introducing samples into the pipe. The error is:
Couldn't initialise audio rendering
Error: unable to initialise audio
make: *** [runide] Error 255
Bela stopped
Can anyone please help me understanding this error?
How would I go to write the audio input into a different pipe?
Thanks