/** * Initialize the oRTP library. You should call this function first before using * oRTP API. **/ void ortp_init() { if (ortp_initialized++) return; #ifdef _WIN32 win32_init_sockets(); #endif ortp_init_logger(); av_profile_init(&av_profile); ortp_global_stats_reset(); init_random_number_generator(); ortp_message("oRTP-" ORTP_VERSION " initialized."); }
/** * Initialize the oRTP library. You should call this function first before using * oRTP API. **/ void ortp_init() { static bool_t initialized=FALSE; if (initialized) return; initialized=TRUE; #ifdef WIN32 win32_init_sockets(); #endif av_profile_init(&av_profile); ortp_global_stats_reset(); init_random_number_generator(); ortp_message("oRTP-" ORTP_VERSION " initialized."); }