#include <resample.h>

Public Member Functions | |
| Resample (File *file, int channels) | |
| ~Resample () | |
| void | reset (int channel=-1) |
| double | blackman (int i, double offset, double fcn, int l) |
| int | get_output_size (int channel) |
| void | read_output (double *output, int channel, int size) |
| void | resample_chunk (double *input, long in_len, int in_rate, int out_rate, int channel) |
| int | resample (double *output, long out_len, int in_rate, int out_rate, int channel, long in_position, long out_position) |
| virtual void | read_chunk (double *input, long len, int &reseek, int iteration) |
Data Fields | |
| double ** | old |
| double * | itime |
| double ** | output_temp |
| long * | output_size |
| long * | output_temp_start |
| long | output_allocation |
| double * | input |
| long * | input_chunk_end |
| long | input_size |
| int | channels |
| int * | resample_init |
| double | last_ratio |
| double | blackfilt [2 *BPC+1][BLACKSIZE] |
| File * | file |
| long * | last_out_end |
Definition at line 9 of file resample.h.
| Resample::Resample | ( | File * | file, | |
| int | channels | |||
| ) |
Definition at line 11 of file resample.C.
References BLACKSIZE, input, input_chunk_end, input_size, itime, last_out_end, last_ratio, old, output_allocation, output_size, output_temp, output_temp_start, and resample_init.
| Resample::~Resample | ( | ) |
Definition at line 42 of file resample.C.
References channels, input, input_chunk_end, itime, last_out_end, old, output_size, output_temp, and output_temp_start.
| void Resample::reset | ( | int | channel = -1 |
) |
Definition at line 66 of file resample.C.
References channels, input_chunk_end, last_out_end, output_size, and resample_init.
Referenced by resample(), and File::set_audio_position().
| double Resample::blackman | ( | int | i, | |
| double | offset, | |||
| double | fcn, | |||
| int | l | |||
| ) |
Definition at line 85 of file resample.C.
References e, M_PI, and RenderProfile::x.
Referenced by resample_chunk().
| int Resample::get_output_size | ( | int | channel | ) |
Definition at line 108 of file resample.C.
References output_size.
Referenced by ResampleEffect::process_loop(), and PitchEngine::read_samples().
| void Resample::read_output | ( | double * | output, | |
| int | channel, | |||
| int | size | |||
| ) |
Definition at line 113 of file resample.C.
References memcpy, output_size, and output_temp.
Referenced by ResampleEffect::process_loop(), and PitchEngine::read_samples().
| void Resample::resample_chunk | ( | double * | input, | |
| long | in_len, | |||
| int | in_rate, | |||
| int | out_rate, | |||
| int | channel | |||
| ) |
Definition at line 124 of file resample.C.
References blackfilt, blackman(), BLACKSIZE, BPC, channels, itime, last_ratio, MIN, offset, old, output_allocation, output_size, output_temp, resample_init, and RenderProfile::y.
Referenced by ResampleEffect::process_loop(), PitchEngine::read_samples(), and resample().

| int Resample::resample | ( | double * | output, | |
| long | out_len, | |||
| int | in_rate, | |||
| int | out_rate, | |||
| int | channel, | |||
| long | in_position, | |||
| long | out_position | |||
| ) |
Definition at line 248 of file resample.C.
References file, File::get_audio_position(), input, input_size, last_out_end, output_size, output_temp, output_temp_start, read_chunk(), REPOSITION, resample_chunk(), and reset().
Referenced by File::read_samples().

| void Resample::read_chunk | ( | double * | input, | |
| long | len, | |||
| int & | reseek, | |||
| int | iteration | |||
| ) | [virtual] |
Definition at line 227 of file resample.C.
References File::current_channel, File::current_sample, file, input_chunk_end, File::read_samples(), and File::set_audio_position().
Referenced by resample().

| double** Resample::old |
Definition at line 42 of file resample.h.
Referenced by Resample(), resample_chunk(), and ~Resample().
| double* Resample::itime |
Definition at line 43 of file resample.h.
Referenced by Resample(), resample_chunk(), and ~Resample().
| double** Resample::output_temp |
Definition at line 48 of file resample.h.
Referenced by read_output(), resample(), Resample(), resample_chunk(), and ~Resample().
| long* Resample::output_size |
Definition at line 53 of file resample.h.
Referenced by get_output_size(), read_output(), resample(), Resample(), resample_chunk(), reset(), and ~Resample().
| double* Resample::input |
Definition at line 63 of file resample.h.
Referenced by read_chunk(), Resample(), reset(), and ~Resample().
| long Resample::input_size |
| double Resample::last_ratio |
| double Resample::blackfilt[2 *BPC+1][BLACKSIZE] |
| long* Resample::last_out_end |
Definition at line 73 of file resample.h.
Referenced by resample(), Resample(), reset(), and ~Resample().
1.5.5