|
Defines |
| #define | switch_core_file_open(_fh, _file_path, _channels, _rate, _flags, _pool) switch_core_perform_file_open(__FILE__, __SWITCH_FUNC__, __LINE__, _fh, _file_path, _channels, _rate, _flags, _pool) |
| | Open a media file using file format modules.
|
Functions |
| switch_status_t | switch_core_perform_file_open (const char *file, const char *func, int line, _In_ switch_file_handle_t *fh, _In_opt_z_ const char *file_path, _In_ uint8_t channels, _In_ uint32_t rate, _In_ unsigned int flags, _In_opt_ switch_memory_pool_t *pool) |
| switch_status_t | switch_core_file_read (_In_ switch_file_handle_t *fh, void *data, switch_size_t *len) |
| | Read media from a file handle.
|
| switch_status_t | switch_core_file_write (_In_ switch_file_handle_t *fh, void *data, switch_size_t *len) |
| | Write media to a file handle.
|
| switch_status_t | switch_core_file_seek (_In_ switch_file_handle_t *fh, unsigned int *cur_pos, int64_t samples, int whence) |
| | Seek a position in a file.
|
| switch_status_t | switch_core_file_set_string (_In_ switch_file_handle_t *fh, switch_audio_col_t col, const char *string) |
| | Set metadata to the desired string.
|
| switch_status_t | switch_core_file_get_string (_In_ switch_file_handle_t *fh, switch_audio_col_t col, const char **string) |
| | get metadata of the desired string
|
| switch_status_t | switch_core_file_close (_In_ switch_file_handle_t *fh) |
| | Close an open file handle.
|