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

« back to all changes in this revision

Viewing changes to libecasound/eca-chain.h

  • Committer: Bazaar Package Importer
  • Author(s): Junichi Uekawa
  • Date: 2008-03-23 21:42:49 UTC
  • mfrom: (3.1.6 hardy)
  • Revision ID: james.westby@ubuntu.com-20080323214249-evlfv3y1o8q747la
Tags: 2.4.6.1-2
* Bug fix: "FTBFS with GCC 4.3: missing #includes", thanks to Martin
  Michlmayr (Closes: #454890).
- 13_gcc4: updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
  CHAIN (void);
22
22
  virtual ~CHAIN (void);
23
23
 
24
 
  bool is_initialized(void) const { return(initialized_rep); }
25
 
  bool is_muted(void) const { return(muted_rep); }
26
 
  bool is_processing(void) const { return(sfx_rep); }
 
24
  bool is_initialized(void) const { return initialized_rep; }
 
25
 
 
26
  /**
 
27
   * Is chain muted? If muted, audio buffers are zeroed during
 
28
   * processing.
 
29
   */ 
 
30
  bool is_muted(void) const { return muted_rep; }
 
31
 
 
32
  /**
 
33
   * Is processing enabled? If disabled, all chain operators
 
34
   * will be skipped during processing. 
 
35
   */
 
36
  bool is_processing(void) const { return sfx_rep; }
27
37
 
28
38
  void toggle_muting(bool v) { muted_rep = v; }
29
39
  void toggle_processing(bool v) { sfx_rep = v; }
30
40
 
31
 
  std::string name(void) const { return(chainname_rep); }
 
41
  std::string name(void) const { return chainname_rep; }
32
42
  void name(const std::string& c) { chainname_rep = c; }
33
43
 
34
44
  bool is_valid(void) const;
43
53
   * Returns an id number to input connected to this chain. If no input
44
54
   * is connected, -1 is returned.
45
55
   */
46
 
  int connected_input(void) const { return(input_id_rep); }
 
56
  int connected_input(void) const { return input_id_rep; }
47
57
 
48
58
  /**
49
59
   * Returns an id number to output connected to this chain. If no input
50
60
   * is connected, -1 is returned.
51
61
   */
52
 
  int connected_output(void) const { return(output_id_rep); }
 
62
  int connected_output(void) const { return output_id_rep; }
53
63
 
54
64
  void clear(void);
55
65
  void add_chain_operator(CHAIN_OPERATOR* chainop);
61
71
  /**
62
72
   * Index of selected chain operator
63
73
   */
64
 
  int selected_chain_operator(void) const { return(selected_chainop_number_rep); }
65
 
  int selected_chain_operator_parameter(void) const { return(selected_chainop_parameter_rep); }
66
 
  int number_of_chain_operators(void) const { return(chainops_rep.size()); }
 
74
  int selected_chain_operator(void) const { return selected_chainop_number_rep; }
 
75
  int selected_chain_operator_parameter(void) const { return selected_chainop_parameter_rep; }
 
76
  int number_of_chain_operators(void) const { return chainops_rep.size(); }
67
77
  int number_of_chain_operator_parameters(void) const;
68
78
  CHAIN_OPERATOR::parameter_t get_parameter(void) const;
69
79
  std::string chain_operator_name(void) const;
70
80
  std::string chain_operator_parameter_name(void) const;
71
 
  const CHAIN_OPERATOR* get_chain_operator(int index) const { return(chainops_rep[index]); }
72
 
  const CHAIN_OPERATOR* get_selected_chain_operator(void) const { return(selected_chainop_repp); }
 
81
  const CHAIN_OPERATOR* get_chain_operator(int index) const { return chainops_rep[index]; }
 
82
  const CHAIN_OPERATOR* get_selected_chain_operator(void) const { return selected_chainop_repp; }
73
83
 
74
84
  void add_controller(GENERIC_CONTROLLER* gcontroller);
75
85
  void remove_controller(void);
76
86
  void select_controller(int index);
77
87
  void select_controller_parameter(int index);
78
88
  void set_controller_parameter(CHAIN_OPERATOR::parameter_t value);
79
 
  const GENERIC_CONTROLLER* get_controller(int index) const { return(gcontrollers_rep[index]); }
80
 
  const GENERIC_CONTROLLER* get_selected_controller(void) const { return(selected_controller_repp); }
 
89
  const GENERIC_CONTROLLER* get_controller(int index) const { return gcontrollers_rep[index]; }
 
90
  const GENERIC_CONTROLLER* get_selected_controller(void) const { return selected_controller_repp; }
81
91
  int number_of_controller_parameters(void) const;
82
92
  std::string controller_parameter_name(void) const;
83
93
  CHAIN_OPERATOR::parameter_t get_controller_parameter(void) const;
85
95
  /**
86
96
   * Index of selected controller
87
97
   */
88
 
  int selected_controller(void) const { return(selected_controller_number_rep); }
89
 
  int selected_controller_parameter(void) const { return(selected_controller_parameter_rep); }
90
 
  int number_of_controllers(void) const { return(gcontrollers_rep.size()); }
 
98
  int selected_controller(void) const { return selected_controller_number_rep; }
 
99
  int selected_controller_parameter(void) const { return selected_controller_parameter_rep; }
 
100
  int number_of_controllers(void) const { return gcontrollers_rep.size(); }
91
101
  std::string controller_name(void) const;
92
102
 
93
103
  void selected_chain_operator_as_target(void);
98
108
   * Returns the object that is the current target for 
99
109
   * parameter control, or 0 if none selected.
100
110
   */
101
 
  OPERATOR* selected_target(void) const { return(selected_dynobj_repp); }
 
111
  OPERATOR* selected_target(void) const { return selected_dynobj_repp; }
102
112
 
103
113
  void init(SAMPLE_BUFFER* sbuf = 0, int in_channels = 0, int out_channels = 0);
104
114
  void release(void);