Menu

Initialization failure...

Help
2004-10-18
2013-04-08
  • Hugh Macdonald

    Hugh Macdonald - 2004-10-18

    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

     
    • Darrick Servis

      Darrick Servis - 2004-10-19

      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. 

       

Log in to post a comment.