static int select_voice(cst_voice **voice, const char *voice_name, void *log_ctx)

{

    int i;



    for (i = 0; i < FF_ARRAY_ELEMS(voice_entries); i++) {

        struct voice_entry *entry = &voice_entries[i];

        if (!strcmp(entry->name, voice_name)) {

            *voice = entry->register_fn(NULL);

            if (!*voice) {

                av_log(log_ctx, AV_LOG_ERROR,

                       "Could not register voice '%s'\n", voice_name);

                return AVERROR_UNKNOWN;

            }

            return 0;

        }

    }



    av_log(log_ctx, AV_LOG_ERROR, "Could not find voice '%s'\n", voice_name);

    av_log(log_ctx, AV_LOG_INFO, "Choose between the voices: ");

    list_voices(log_ctx, ", ");



    return AVERROR(EINVAL);

}

static int select_voice(cst_voice **voice, const char *voice_name, void *log_ctx)

{

    int i;



    for (i = 0; i < FF_ARRAY_ELEMS(voice_entries); i++) {

        struct voice_entry *entry = &voice_entries[i];

        if (!strcmp(entry->name, voice_name)) {

            *voice = entry->register_fn(NULL);

            if (!*voice) {

                av_log(log_ctx, AV_LOG_ERROR,

                       "Could not register voice '%s'\n", voice_name);

                return AVERROR_UNKNOWN;

            }

            return 0;

        }

    }



    av_log(log_ctx, AV_LOG_ERROR, "Could not find voice '%s'\n", voice_name);

    av_log(log_ctx, AV_LOG_INFO, "Choose between the voices: ");

    list_voices(log_ctx, ", ");



    return AVERROR(EINVAL);

}

static int select_voice(cst_voice **voice, const char *voice_name, void *log_ctx)             *voice = entry->register_fn(NULL);             if (!*voice) {
static int FUNC_0(cst_voice **VAR_0, const char *VAR_1, void *VAR_2)

{

    int VAR_3;



    for (VAR_3 = 0; VAR_3 < FF_ARRAY_ELEMS(voice_entries); VAR_3++) {

        struct voice_entry *entry = &voice_entries[VAR_3];

        if (!strcmp(entry->name, VAR_1)) {

            *VAR_0 = entry->register_fn(NULL);

            if (!*VAR_0) {

                av_log(VAR_2, AV_LOG_ERROR,

                       "Could not register VAR_0 '%s'\n", VAR_1);

                return AVERROR_UNKNOWN;

            }

            return 0;

        }

    }



    av_log(VAR_2, AV_LOG_ERROR, "Could not find VAR_0 '%s'\n", VAR_1);

    av_log(VAR_2, AV_LOG_INFO, "Choose between the voices: ");

    list_voices(VAR_2, ", ");



    return AVERROR(EINVAL);

}

static int FUNC_0(cst_voice **VAR_0, const char *VAR_1, void *VAR_2)
{ int VAR_3; for (VAR_3 = 0; VAR_3 < FF_ARRAY_ELEMS(voice_entries); VAR_3++) { struct voice_entry *entry = &voice_entries[VAR_3]; if (!strcmp(entry->name, VAR_1)) { *VAR_0 = entry->register_fn(NULL); if (!*VAR_0) { av_log(VAR_2, AV_LOG_ERROR,
"Could not register VAR_0 '%s'\n", VAR_1); return AVERROR_UNKNOWN; } return 0; } } av_log(VAR_2, AV_LOG_ERROR, "Could not find VAR_0 '%s'\n", VAR_1); av_log(VAR_2, AV_LOG_INFO, "Choose between the voices: "); list_voices(VAR_2, ", "); return AVERROR(EINVAL); }