Public Types | Public Member Functions | Static Public Member Functions

SpectMorph::NoiseDecoder Class Reference

Decoder for the noise component (stochastic component) of the signal. More...

#include <smnoisedecoder.hh>

List of all members.

Public Types

enum  OutputMode {
  REPLACE, ADD, FFT_SPECTRUM, DEBUG_UNWINDOWED,
  DEBUG_NO_OUTPUT
}

Public Member Functions

 NoiseDecoder (double orig_mix_freq, double mix_freq, size_t block_size)
void set_seed (int seed)
void process (const AudioBlock &audio_block, float *samples, OutputMode output_mode=REPLACE)

Static Public Member Functions

static size_t preferred_block_size (double mix_freq)

Detailed Description

Decoder for the noise component (stochastic component) of the signal.


Constructor & Destructor Documentation

NoiseDecoder::NoiseDecoder ( double  orig_mix_freq,
double  mix_freq,
size_t  block_size 
)

Creates a noise decoder object.

Parameters:
orig_mix_freq original mix freq (sample rate) of the audio file that was encoded
mix_freq mix freq (sample rate) of the output sample data

Member Function Documentation

void NoiseDecoder::process ( const AudioBlock audio_block,
float *  samples,
OutputMode  output_mode = REPLACE 
)

This function decodes the noise contained in the frame and fills the decoded_residue vector of the frame.

Parameters:
audio_block AudioBlock to be decoded

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Enumerator