~ubuntu-branches/ubuntu/oneiric/lmms/oneiric

« back to all changes in this revision

Viewing changes to plugins/ladspa_effect/calf/src/calf/modules_eq.h

  • Committer: Bazaar Package Importer
  • Author(s): Артём Попов
  • Date: 2011-02-14 20:58:36 UTC
  • mfrom: (1.1.10 upstream) (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110214205836-2u41xus1d2mj8nfz
Tags: 0.4.10-1ubuntu1
* Merge from debian unstable (LP: #718801).  Remaining changes:
  - Replace build-dep on libwine-dev with wine1.2-dev to build
    against the newer Wine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "audio_fx.h"
29
29
#include "giface.h"
30
30
#include "metadata.h"
 
31
#include "plugin_tools.h"
31
32
 
32
33
namespace calf_plugins {
33
34
 
51
52
    float hs_level_old, hs_freq_old;
52
53
    float p_level_old[PeakBands], p_freq_old[PeakBands], p_q_old[PeakBands];
53
54
    mutable float old_params_for_graph[graph_param_count];
54
 
    uint32_t clip_inL, clip_outL, clip_inR, clip_outR;
55
 
    float meter_inL, meter_outL, meter_inR, meter_outR;
 
55
    dual_in_out_metering<BaseClass> meters;
56
56
    CalfEqMode hp_mode, lp_mode;
57
57
    dsp::biquad_d2<float> hp[3][2], lp[3][2];
58
58
    dsp::biquad_d2<float> lsL, lsR, hsL, hsR;
73
73
    void set_sample_rate(uint32_t sr)
74
74
    {
75
75
        srate = sr;
 
76
        meters.set_sample_rate(sr);
76
77
    }
77
78
    uint32_t process(uint32_t offset, uint32_t numsamples, uint32_t inputs_mask, uint32_t outputs_mask);
78
79
    bool get_graph(int index, int subindex, float *data, int points, cairo_iface *context) const;