C# Класс javazoom.jl.decoder.SynthesisFilter

A class for the synthesis filter bank. This class does a fast downsampling from 32, 44.1 or 48 kHz to 8 kHz, if ULAW is defined. Frequencies above 4 kHz are removed by ignoring higher subbands.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
SynthesisFilter ( int channelnumber, float factor, float eq0 ) : System

Contructor. The scalefactor scales the calculated float pcm samples to short values (raw pcm samples are in [-1.0, 1.0], if no violations occur).

calculate_pcm_samples ( Obuffer buffer ) : void

Calculate 32 PCM samples and put the into the Obuffer-object.

input_sample ( float sample, int subbandnumber ) : void

Inject Sample.

input_samples ( float s ) : void
reset ( ) : void

Reset the synthesis filter.

Приватные методы

Метод Описание
InitBlock ( ) : void
compute_new_v ( ) : void

Compute new values via a fast cosine transform.

compute_new_v_old ( ) : void

Compute new values via a fast cosine transform.

compute_pcm_samples ( Obuffer buffer ) : void
compute_pcm_samples0 ( Obuffer buffer ) : void
compute_pcm_samples1 ( Obuffer buffer ) : void
compute_pcm_samples10 ( Obuffer buffer ) : void
compute_pcm_samples11 ( Obuffer buffer ) : void
compute_pcm_samples12 ( Obuffer buffer ) : void
compute_pcm_samples13 ( Obuffer buffer ) : void
compute_pcm_samples14 ( Obuffer buffer ) : void
compute_pcm_samples15 ( Obuffer buffer ) : void
compute_pcm_samples2 ( Obuffer buffer ) : void
compute_pcm_samples3 ( Obuffer buffer ) : void
compute_pcm_samples4 ( Obuffer buffer ) : void
compute_pcm_samples5 ( Obuffer buffer ) : void
compute_pcm_samples6 ( Obuffer buffer ) : void
compute_pcm_samples7 ( Obuffer buffer ) : void
compute_pcm_samples8 ( Obuffer buffer ) : void
compute_pcm_samples9 ( Obuffer buffer ) : void
load_d ( ) : float[]

Loads the data for the d[] from the resource SFd.ser.

splitArray ( float array, int blockSize ) : float[][]

Converts a 1D array into a number of smaller arrays. This is used to achieve offset + constant indexing into an array. Each sub-array represents a block of values of the original array.

subArray ( float array, int offs, int len ) : float[]

Returns a subarray of an existing array.

Описание методов

SynthesisFilter() публичный Метод

Contructor. The scalefactor scales the calculated float pcm samples to short values (raw pcm samples are in [-1.0, 1.0], if no violations occur).
public SynthesisFilter ( int channelnumber, float factor, float eq0 ) : System
channelnumber int
factor float
eq0 float
Результат System

calculate_pcm_samples() публичный Метод

Calculate 32 PCM samples and put the into the Obuffer-object.
public calculate_pcm_samples ( Obuffer buffer ) : void
buffer Obuffer
Результат void

input_sample() публичный Метод

Inject Sample.
public input_sample ( float sample, int subbandnumber ) : void
sample float
subbandnumber int
Результат void

input_samples() публичный Метод

public input_samples ( float s ) : void
s float
Результат void

reset() публичный Метод

Reset the synthesis filter.
public reset ( ) : void
Результат void