|
SpectMorph
|
Decoder for the noise component (stochastic component) of the signal. More...
#include <smnoisedecoder.hh>
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) |
Decoder for the noise component (stochastic component) of the signal.
| NoiseDecoder::NoiseDecoder | ( | double | orig_mix_freq, |
| double | mix_freq, | ||
| size_t | block_size | ||
| ) |
Creates a noise decoder object.
| 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 |
| 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.
| audio_block | AudioBlock to be decoded |
1.8.11