FreeSWITCH API Documentation
1.7.0
|
Go to the source code of this file.
switch_status_t switch_core_file_close | ( | switch_file_handle_t * | fh | ) |
Definition at line 774 of file switch_core_file.c.
References switch_assert, switch_buffer_destroy(), switch_buffer_inuse(), switch_buffer_read(), SWITCH_CHANNEL_LOG, switch_clear_flag_locked, switch_core_destroy_memory_pool, switch_event_destroy(), SWITCH_FILE_FLAG_FREE_POOL, SWITCH_FILE_FLAG_WRITE, SWITCH_FILE_NATIVE, SWITCH_FILE_OPEN, SWITCH_LOG_DEBUG, SWITCH_LOG_ERROR, switch_log_printf(), switch_mprintf(), switch_resample_destroy(), switch_safe_free, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_test_flag, and UNPROTECT_INTERFACE.
switch_status_t switch_core_file_get_string | ( | switch_file_handle_t * | fh, |
switch_audio_col_t | col, | ||
const char ** | string | ||
) |
Definition at line 697 of file switch_core_file.c.
References switch_assert, SWITCH_FILE_OPEN, SWITCH_STATUS_FALSE, and switch_test_flag.
switch_status_t switch_core_file_read | ( | switch_file_handle_t * | fh, |
void * | data, | ||
switch_size_t * | len | ||
) |
Definition at line 372 of file switch_core_file.c.
References switch_assert, switch_buffer_create_dynamic(), switch_buffer_inuse(), switch_buffer_read(), switch_buffer_write(), SWITCH_CHANNEL_LOG, switch_clear_flag_locked, SWITCH_FILE_BUFFER_DONE, SWITCH_FILE_DONE, SWITCH_FILE_NATIVE, SWITCH_FILE_NOMUX, SWITCH_FILE_OPEN, SWITCH_LOG_CRIT, switch_log_printf(), switch_mux_channels(), switch_resample_create, switch_resample_process(), SWITCH_RESAMPLE_QUALITY, switch_set_flag_locked, SWITCH_STATUS_BREAK, SWITCH_STATUS_FALSE, SWITCH_STATUS_GENERR, SWITCH_STATUS_SUCCESS, and switch_test_flag.
switch_status_t switch_core_file_seek | ( | switch_file_handle_t * | fh, |
unsigned int * | cur_pos, | ||
int64_t | samples, | ||
int | whence | ||
) |
Definition at line 630 of file switch_core_file.c.
References cur, switch_assert, switch_buffer_zero(), SWITCH_FILE_FLAG_READ, SWITCH_FILE_FLAG_WRITE, SWITCH_FILE_OPEN, SWITCH_FILE_SEEK, SWITCH_FILE_WRITE_APPEND, SWITCH_FILE_WRITE_OVER, SWITCH_SEEK_CUR, switch_set_flag_locked, SWITCH_STATUS_FALSE, and switch_test_flag.
switch_status_t switch_core_file_set_string | ( | switch_file_handle_t * | fh, |
switch_audio_col_t | col, | ||
const char * | string | ||
) |
Definition at line 681 of file switch_core_file.c.
References switch_assert, SWITCH_FILE_OPEN, SWITCH_STATUS_FALSE, and switch_test_flag.
switch_status_t switch_core_file_write | ( | switch_file_handle_t * | fh, |
void * | data, | ||
switch_size_t * | len | ||
) |
Definition at line 508 of file switch_core_file.c.
References switch_assert, switch_buffer_inuse(), switch_buffer_read(), switch_buffer_write(), SWITCH_CHANNEL_LOG, SWITCH_FILE_NATIVE, SWITCH_FILE_OPEN, SWITCH_LOG_CRIT, switch_log_printf(), switch_resample_create, switch_resample_process(), SWITCH_RESAMPLE_QUALITY, SWITCH_STATUS_FALSE, SWITCH_STATUS_GENERR, SWITCH_STATUS_SUCCESS, and switch_test_flag.
switch_status_t switch_core_file_write_video | ( | switch_file_handle_t * | fh, |
switch_frame_t * | frame | ||
) |
Definition at line 589 of file switch_core_file.c.
References switch_assert, SWITCH_FILE_OPEN, SWITCH_STATUS_FALSE, SWITCH_STATUS_GENERR, and switch_test_flag.
switch_status_t switch_core_perform_file_open | ( | const char * | file, |
const char * | func, | ||
int | line, | ||
switch_file_handle_t * | fh, | ||
const char * | file_path, | ||
uint32_t | channels, | ||
uint32_t | rate, | ||
unsigned int | flags, | ||
switch_memory_pool_t * | pool | ||
) |
Definition at line 39 of file switch_core_file.c.
References fail, pool, SWITCH_AUDIO_SPOOL_PATH_VARIABLE, switch_buffer_create_dynamic(), SWITCH_CHANNEL_LOG, switch_clear_flag_locked, switch_copy_string(), switch_core_alloc, switch_core_destroy_memory_pool, switch_core_get_variable_pdup(), switch_core_new_memory_pool, switch_core_sprintf(), switch_core_strdup, switch_directory_exists(), switch_event_create_brackets(), switch_event_destroy(), switch_event_get_header, SWITCH_FALSE, switch_file_exists(), SWITCH_FILE_FLAG_FREE_POOL, SWITCH_FILE_FLAG_READ, SWITCH_FILE_FLAG_VIDEO, SWITCH_FILE_FLAG_WRITE, SWITCH_FILE_NOMUX, SWITCH_FILE_OPEN, switch_goto_status, switch_loadable_module_get_file_interface(), SWITCH_LOG_DEBUG, SWITCH_LOG_ERROR, switch_log_printf(), SWITCH_LOG_WARNING, switch_mutex_init(), SWITCH_MUTEX_NESTED, SWITCH_PATH_SEPARATOR, switch_set_flag, switch_set_flag_locked, SWITCH_STATUS_FALSE, SWITCH_STATUS_GENERR, SWITCH_STATUS_SUCCESS, switch_test_flag, switch_true(), SWITCH_URL_SEPARATOR, switch_uuid_format(), SWITCH_UUID_FORMATTED_LENGTH, switch_uuid_get(), SWITCH_VIDEO_ENCODE_SPEED_DEFAULT, SWITCH_VIDEO_ENCODE_SPEED_FAST, SWITCH_VIDEO_ENCODE_SPEED_MEDIUM, SWITCH_VIDEO_ENCODE_SPEED_SLOW, SWITCH_VIDEO_PROFILE_BASELINE, SWITCH_VIDEO_PROFILE_HIGH, SWITCH_VIDEO_PROFILE_MAIN, UNPROTECT_INTERFACE, and zstr.