示例#1
0
Spectrogram3DVisualizerFactory::Spectrogram3DVisualizerFactory(const IniParser& ini)
{
    this->dB_min = ini.getOptionAsFloat("general", "dB_min");
    this->dB_max = ini.getOptionAsFloat("general", "dB_max");
    this->dB_clip = ini.getOptionAsFloat("general", "dB_clip");
    this->fft_size = ini.getOptionAsUnsignedInteger("fft", "fft_size");
}
示例#2
0
SpectrumVisualizerFactory::SpectrumVisualizerFactory(const IniParser& ini)
{
    this->dB_min = ini.getOptionAsFloat("general", "dB_min");
    this->dB_max = ini.getOptionAsFloat("general", "dB_max");
    this->dB_clip = ini.getOptionAsFloat("general", "dB_clip");
    this->fft_size = ini.getOptionAsUnsignedInteger("fft", "fft_size");
    this->fill = ini.getOptionAsBool("spectrum", "fill");
    this->enable_grid = ini.getOptionAsBool("spectrum", "grid");

    if (this->fill)
        throw "spectrum.fill has not been implemented yet.";
}