X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ffilescene.C;fp=cinelerra-5.1%2Fcinelerra%2Ffilescene.C;h=9166b80bdc7d20e2ba10005142c0ed68a29a0299;hp=82d2292b2994a09c1578c329f38d58e0b34568db;hb=3b4d085f4235e6313c25871877180a1a989e5b9f;hpb=c88e3df2c765bfff605a98f1feed145af81ca238 diff --git a/cinelerra-5.1/cinelerra/filescene.C b/cinelerra-5.1/cinelerra/filescene.C index 82d2292b..9166b80b 100644 --- a/cinelerra-5.1/cinelerra/filescene.C +++ b/cinelerra-5.1/cinelerra/filescene.C @@ -44,8 +44,10 @@ extern "C" // Paths relative to the exe path +#ifdef HAVE_FESTIVAL_BUILTIN #define FESTIVAL_PATH "/festival" #define FESTIVAL_LIB_PATH "/lib/" +#endif #define ASSET_PATH "/models/" #define FREAD_SIZE 0x10000 #define WAVHEADER 44 @@ -1299,10 +1301,14 @@ void SceneChunk::render() uuid_unparse(temp_id, script_path + strlen(script_path)); FILE *script_fd = fopen(script_path, "w"); +#ifdef HAVE_FESTIVAL_BUILTIN sprintf(command_line, "%s%s --libdir %s%s -b %s", script->file->exec_path, FESTIVAL_PATH, script->file->exec_path, FESTIVAL_LIB_PATH, script_path); +#else + sprintf(command_line, "festival -b %s", script_path); +#endif // Create script. // The maximum text length is limited with the command line