RTS API Documentation
1.10.11
|
An audio resampling handle. More...
#include <switch_resample.h>
Data Fields | |
void * | resampler |
int | from_rate |
int | to_rate |
double | factor |
double | rfactor |
int16_t * | to |
uint32_t | to_len |
uint32_t | to_size |
int | channels |
An audio resampling handle.
Definition at line 56 of file switch_resample.h.
int switch_audio_resampler_t::channels |
the number of channels
Definition at line 72 of file switch_resample.h.
Referenced by switch_core_session_read_frame(), switch_core_session_write_frame(), switch_resample_perform_create(), and switch_resample_process().
double switch_audio_resampler_t::factor |
the factor to resample by (from / to)
Definition at line 64 of file switch_resample.h.
Referenced by switch_resample_perform_create().
int switch_audio_resampler_t::from_rate |
the rate to resample from in hz
Definition at line 60 of file switch_resample.h.
Referenced by switch_core_session_write_frame(), switch_resample_perform_create(), and switch_resample_process().
void* switch_audio_resampler_t::resampler |
a pointer to store the resampler object
Definition at line 58 of file switch_resample.h.
Referenced by switch_resample_perform_create(), and switch_resample_process().
double switch_audio_resampler_t::rfactor |
Definition at line 65 of file switch_resample.h.
Referenced by switch_resample_perform_create().
int16_t* switch_audio_resampler_t::to |
Definition at line 66 of file switch_resample.h.
Referenced by switch_core_asr_feed(), switch_core_file_read(), switch_core_file_write(), switch_core_session_read_frame(), switch_core_session_write_frame(), switch_core_speech_read_tts(), switch_resample_perform_create(), and switch_resample_process().
uint32_t switch_audio_resampler_t::to_len |
the size of the to buffer used
Definition at line 68 of file switch_resample.h.
Referenced by switch_core_asr_feed(), switch_core_file_read(), switch_core_file_write(), switch_core_session_read_frame(), switch_core_session_write_frame(), switch_core_speech_read_tts(), and switch_resample_process().
int switch_audio_resampler_t::to_rate |
the rate to resample to in hz
Definition at line 62 of file switch_resample.h.
Referenced by switch_core_session_read_frame(), switch_core_session_write_frame(), switch_resample_perform_create(), and switch_resample_process().
uint32_t switch_audio_resampler_t::to_size |
the total size of the to buffer
Definition at line 70 of file switch_resample.h.
Referenced by switch_resample_perform_create(), and switch_resample_process().