Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

switch_file_handle Struct Reference

#include <switch_module_interfaces.h>

Collaboration diagram for switch_file_handle:

Collaboration graph
[legend]

Detailed Description

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


Data Fields

const switch_file_interface_tfile_interface
uint32_t flags
switch_file_tfd
unsigned int samples
uint32_t samplerate
uint32_t native_rate
uint8_t 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
uint32_t last_pos
int32_t vol
switch_audio_resampler_tresampler
switch_buffer_tbuffer
switch_byte_tdbuf
switch_size_t dbuflen
const char * file
const char * func
int line


Field Documentation

switch_buffer_t* switch_file_handle::audio_buffer
 

switch_buffer_t* switch_file_handle::buffer
 

uint8_t switch_file_handle::channels
 

the number of channels

switch_byte_t* switch_file_handle::dbuf
 

switch_size_t switch_file_handle::dbuflen
 

switch_file_t* switch_file_handle::fd
 

a file descriptor if neceessary

const char* switch_file_handle::file
 

const switch_file_interface_t* switch_file_handle::file_interface
 

the interface of the module that implemented the current file type

uint32_t switch_file_handle::flags
 

flags to control behaviour

unsigned int switch_file_handle::format
 

integer representation of the format

const char* switch_file_handle::func
 

char* switch_file_handle::handler
 

uint32_t switch_file_handle::interval
 

private data for the format module to store handle specific info

uint32_t switch_file_handle::last_pos
 

int switch_file_handle::line
 

switch_memory_pool_t* switch_file_handle::memory_pool
 

the handle's memory pool

uint32_t switch_file_handle::native_rate
 

the current native samplerate

uint32_t switch_file_handle::offset_pos
 

int64_t switch_file_handle::pos
 

uint32_t switch_file_handle::prebuf
 

pre-buffer x bytes for streams

void* switch_file_handle::private_info
 

switch_audio_resampler_t* switch_file_handle::resampler
 

switch_size_t switch_file_handle::sample_count
 

the sample count of the file

uint32_t switch_file_handle::samplerate
 

the current samplerate

unsigned int switch_file_handle::samples
 

samples position of the handle

unsigned int switch_file_handle::sections
 

integer representation of the sections

int switch_file_handle::seekable
 

is the file seekable

uint32_t switch_file_handle::silence_hits
 

switch_buffer_t* switch_file_handle::sp_audio_buffer
 

int switch_file_handle::speed
 

the speed of the file playback

uint32_t switch_file_handle::thresh
 

int32_t switch_file_handle::vol
 


The documentation for this struct was generated from the following file:
Generated on Fri Oct 10 11:24:05 2008 for FreeSWITCH by  doxygen 1.3.9.1