~ubuntu-branches/ubuntu/saucy/ecasound2.2/saucy

« back to all changes in this revision

Viewing changes to libecasound/audiofx_analysis.h

  • Committer: Bazaar Package Importer
  • Author(s): Junichi Uekawa
  • Date: 2009-11-02 18:22:35 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091102182235-4ngh7699dmkgonyu
Tags: 2.7.0-1
* New upstream release.
* Depend on libreadline-dev instead of libreadline5-dev by request of
  Mattias Klose. It's now libreadline6-dev. (closes: #553748)
* Update menu file to use section Applications/ instead of Apps/.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 */
18
18
class EFFECT_ANALYSIS : public EFFECT_BASE {
19
19
 
20
 
 protected:
21
 
 
22
 
  static const SAMPLE_SPECS::sample_t clip_amplitude;
23
 
 
24
20
 public:
25
21
 
26
22
  virtual void set_parameter(int param, parameter_t value) { }
39
35
 */
40
36
class EFFECT_VOLUME_BUCKETS : public EFFECT_ANALYSIS {
41
37
 
42
 
  static const int range_count;
43
 
  static const SAMPLE_SPECS::sample_t clip_amplitude;
44
 
 
45
 
  mutable std::vector<unsigned long int> num_of_samples; // number of samples processed
46
 
  mutable std::vector<std::vector<unsigned long int> > ranges;
47
 
 
48
 
  mutable parameter_t max_pos_period, max_neg_period;
49
 
  mutable unsigned long int clipped_pos_period, clipped_neg_period;
50
 
  mutable pthread_mutex_t* lock_repp;
51
 
  mutable std::string status_rep;
52
 
  
 
38
private:
 
39
 
 
40
  std::vector<unsigned long int> num_of_samples; // number of samples processed
 
41
  std::vector<std::vector<unsigned long int> > pos_samples_db;
 
42
  std::vector<std::vector<unsigned long int> > neg_samples_db;
53
43
  SAMPLE_SPECS::sample_t max_pos, max_neg;
54
 
  unsigned long int clipped_pos, clipped_neg;
55
 
  bool cumulativemode_rep;
 
44
 
 
45
  mutable pthread_mutex_t lock_rep;
56
46
  SAMPLE_ITERATOR_CHANNELS i;
57
47
 
58
 
  void reset_stats(void);
59
 
  void status_entry(int range, std::string& otemp) const;
 
48
  void reset_all_stats(void);
 
49
  void reset_period_stats(void);
 
50
  void status_entry(const std::vector<unsigned long int>& buckets, std::string& otemp) const;
60
51
 
61
52
 public:
62
53