I haven't done much with this library in a long time. The error you are getting is because the plugin which handles the format cannot initialize. Why is a differenent story. That was a TODO. Try comiling with sox support as noted in the README. The sox module should more errors then the ones based on the audiofile library.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am unable at the moment to get a sound file to open, as it always gives a status of AFLIB_ERROR_INITIALIZATION_FAILURE
I can't find any docs on what could be causing an initialization error, so I thought I'd ask here...
My code looks like this:
aflibConfig sInfo;
aflibStatus sStatus;
cout << "Opening sound file: " << soundFile << endl;
aflibFile *sFile = aflibFile::open("AUTO", soundFile, &sInfo, &sStatus);
After which, I check sStatus, and it is always AFLIB_ERROR_INITIALIZATION_FAILURE
Any ideas why this could be happening? My system, or something I've forgotten to set up?
Cheers
Hugh Macdonald
Hi Hugh
I haven't done much with this library in a long time. The error you are getting is because the plugin which handles the format cannot initialize. Why is a differenent story. That was a TODO. Try comiling with sox support as noted in the README. The sox module should more errors then the ones based on the audiofile library.