RTS API Documentation  1.10.11
Data Fields
switch_file_handle Struct Reference

#include <switch_module_interfaces.h>

+ Collaboration diagram for switch_file_handle:

Data Fields

switch_file_interface_tfile_interface
 
uint32_t flags
 
switch_file_tfd
 
unsigned int samples
 
uint32_t samplerate
 
uint32_t native_rate
 
uint32_t channels
 
uint32_t real_channels
 
unsigned int format
 
unsigned int sections
 
int seekable
 
switch_size_t sample_count
 
int speed
 
switch_memory_pool_tmemory_pool
 
uint32_t prebuf
 
uint32_t interval
 
void * private_info
 
char * handler
 
int64_t pos
 
switch_buffer_taudio_buffer
 
switch_buffer_tsp_audio_buffer
 
uint32_t thresh
 
uint32_t silence_hits
 
uint32_t offset_pos
 
switch_size_t samples_in
 
switch_size_t samples_out
 
int32_t vol
 
int32_t volgranular
 
switch_audio_resampler_tresampler
 
switch_buffer_tbuffer
 
switch_byte_tdbuf
 
switch_size_t dbuflen
 
switch_buffer_tpre_buffer
 
unsigned char * pre_buffer_data
 
switch_size_t pre_buffer_datalen
 
const char * file
 
const char * func
 
int line
 
char * file_path
 
char * spool_path
 
const char * prefix
 
int max_samples
 
switch_event_tparams
 
uint32_t cur_channels
 
uint32_t cur_samplerate
 
char * stream_name
 
char * modname
 
switch_mm_t mm
 
switch_mutex_tflag_mutex
 
int64_t duration
 
int64_t vpos
 
void * muxbuf
 
switch_size_t muxlen
 

Detailed Description

an abstract representation of a file handle (some parameters based on compat with libsndfile)

Definition at line 316 of file switch_module_interfaces.h.

Field Documentation

◆ audio_buffer

switch_buffer_t* switch_file_handle::audio_buffer

Definition at line 351 of file switch_module_interfaces.h.

Referenced by switch_ivr_play_file().

◆ buffer

switch_buffer_t* switch_file_handle::buffer

◆ channels

uint32_t switch_file_handle::channels

◆ cur_channels

uint32_t switch_file_handle::cur_channels

◆ cur_samplerate

uint32_t switch_file_handle::cur_samplerate

Definition at line 376 of file switch_module_interfaces.h.

◆ dbuf

switch_byte_t* switch_file_handle::dbuf

◆ dbuflen

switch_size_t switch_file_handle::dbuflen

Definition at line 363 of file switch_module_interfaces.h.

Referenced by switch_core_file_read(), and switch_core_file_write().

◆ duration

int64_t switch_file_handle::duration

total video duration, or total page in pdf

Definition at line 382 of file switch_module_interfaces.h.

◆ fd

switch_file_t* switch_file_handle::fd

a file descriptor if neceessary

Definition at line 322 of file switch_module_interfaces.h.

◆ file

const char* switch_file_handle::file

Definition at line 367 of file switch_module_interfaces.h.

Referenced by switch_core_perform_file_open().

◆ file_interface

switch_file_interface_t* switch_file_handle::file_interface

◆ file_path

char* switch_file_handle::file_path

◆ flag_mutex

switch_mutex_t* switch_file_handle::flag_mutex

◆ flags

uint32_t switch_file_handle::flags

flags to control behaviour

Definition at line 320 of file switch_module_interfaces.h.

Referenced by switch_core_perform_file_open().

◆ format

unsigned int switch_file_handle::format

integer representation of the format

Definition at line 333 of file switch_module_interfaces.h.

◆ func

const char* switch_file_handle::func

Definition at line 368 of file switch_module_interfaces.h.

Referenced by switch_core_perform_file_open().

◆ handler

char* switch_file_handle::handler

Definition at line 349 of file switch_module_interfaces.h.

Referenced by switch_core_perform_file_open().

◆ interval

uint32_t switch_file_handle::interval

private data for the format module to store handle specific info

Definition at line 347 of file switch_module_interfaces.h.

◆ line

int switch_file_handle::line

Definition at line 369 of file switch_module_interfaces.h.

Referenced by switch_core_perform_file_open().

◆ max_samples

int switch_file_handle::max_samples

◆ memory_pool

switch_memory_pool_t* switch_file_handle::memory_pool

◆ mm

switch_mm_t switch_file_handle::mm

◆ modname

char* switch_file_handle::modname

Definition at line 378 of file switch_module_interfaces.h.

Referenced by switch_core_perform_file_open().

◆ muxbuf

void* switch_file_handle::muxbuf

Definition at line 385 of file switch_module_interfaces.h.

Referenced by switch_core_file_close(), and switch_core_file_write().

◆ muxlen

switch_size_t switch_file_handle::muxlen

Definition at line 386 of file switch_module_interfaces.h.

Referenced by switch_core_file_write().

◆ native_rate

uint32_t switch_file_handle::native_rate

◆ offset_pos

uint32_t switch_file_handle::offset_pos

◆ params

switch_event_t* switch_file_handle::params

◆ pos

int64_t switch_file_handle::pos

Definition at line 350 of file switch_module_interfaces.h.

Referenced by switch_core_file_truncate().

◆ pre_buffer

switch_buffer_t* switch_file_handle::pre_buffer

◆ pre_buffer_data

unsigned char* switch_file_handle::pre_buffer_data

◆ pre_buffer_datalen

switch_size_t switch_file_handle::pre_buffer_datalen

◆ prebuf

uint32_t switch_file_handle::prebuf

pre-buffer x bytes for streams

Definition at line 345 of file switch_module_interfaces.h.

Referenced by CoreSession::streamFile(), and switch_ivr_play_file().

◆ prefix

const char* switch_file_handle::prefix

◆ private_info

void* switch_file_handle::private_info

Definition at line 348 of file switch_module_interfaces.h.

◆ real_channels

uint32_t switch_file_handle::real_channels

◆ resampler

switch_audio_resampler_t* switch_file_handle::resampler

◆ sample_count

switch_size_t switch_file_handle::sample_count

the sample count of the file

Definition at line 339 of file switch_module_interfaces.h.

◆ samplerate

uint32_t switch_file_handle::samplerate

◆ samples

unsigned int switch_file_handle::samples

samples position of the handle

Definition at line 324 of file switch_module_interfaces.h.

Referenced by CoreSession::streamFile(), switch_ivr_play_file(), and switch_ivr_record_file_event().

◆ samples_in

switch_size_t switch_file_handle::samples_in

◆ samples_out

switch_size_t switch_file_handle::samples_out

◆ sections

unsigned int switch_file_handle::sections

integer representation of the sections

Definition at line 335 of file switch_module_interfaces.h.

◆ seekable

int switch_file_handle::seekable

is the file seekable

Definition at line 337 of file switch_module_interfaces.h.

◆ silence_hits

uint32_t switch_file_handle::silence_hits

◆ sp_audio_buffer

switch_buffer_t* switch_file_handle::sp_audio_buffer

Definition at line 352 of file switch_module_interfaces.h.

Referenced by switch_ivr_play_file().

◆ speed

int switch_file_handle::speed

the speed of the file playback

Definition at line 341 of file switch_module_interfaces.h.

Referenced by switch_ivr_originate(), switch_ivr_play_file(), switch_ivr_process_fh(), and switch_ivr_wait_for_answer().

◆ spool_path

char* switch_file_handle::spool_path

◆ stream_name

char* switch_file_handle::stream_name

Definition at line 377 of file switch_module_interfaces.h.

Referenced by switch_core_perform_file_open().

◆ thresh

uint32_t switch_file_handle::thresh

◆ vol

int32_t switch_file_handle::vol

Definition at line 358 of file switch_module_interfaces.h.

Referenced by switch_ivr_play_file(), and switch_ivr_process_fh().

◆ volgranular

int32_t switch_file_handle::volgranular

◆ vpos

int64_t switch_file_handle::vpos

current video position, or current page in pdf

Definition at line 384 of file switch_module_interfaces.h.


The documentation for this struct was generated from the following file: