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

« back to all changes in this revision

Viewing changes to libecasound/eca-chainsetup-edit.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:
 
1
// ------------------------------------------------------------------------
 
2
// eca-chainsetup-edit.h: Chainsetup edit object
 
3
// Copyright (C) 2009 Kai Vehmanen
 
4
//
 
5
// Attributes:
 
6
//     eca-style-version: 3
 
7
//
 
8
// This program is free software; you can redistribute it and/or modify
 
9
// it under the terms of the GNU General Public License as published by
 
10
// the Free Software Foundation; either version 2 of the License, or
 
11
// (at your option) any later version.
 
12
// 
 
13
// This program is distributed in the hope that it will be useful,
 
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
// GNU General Public License for more details.
 
17
// 
 
18
// You should have received a copy of the GNU General Public License
 
19
// along with this program; if not, write to the Free Software
 
20
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 
21
// ------------------------------------------------------------------------
 
22
 
 
23
#ifndef INCLUDED_ECA_CHAINSETUP_EDIT_H
 
24
#define INCLUDED_ECA_CHAINSETUP_EDIT_H
 
25
 
 
26
class CHAIN;
 
27
class ECA_CHAINSETUP;
 
28
 
 
29
namespace ECA {
 
30
  enum Chainsetup_edit_type {
 
31
  
 
32
    edit_c_bypass = 0,
 
33
    edit_c_muting,
 
34
    edit_cop_set_param,
 
35
    edit_ctrl_set_param,
 
36
  };
 
37
 
 
38
  struct chainsetup_edit {
 
39
 
 
40
    Chainsetup_edit_type type;
 
41
    const ECA_CHAINSETUP *cs_ptr;
 
42
 
 
43
    /* FIXME: should a version tag be added as way to invalidate
 
44
     *        edit objects in case chainsetup is modified */
 
45
 
 
46
    union {
 
47
      struct {
 
48
        int chain;     /**< @see ECA_CHAINSETUP::get_chain_index() */
 
49
        bool enabled;
 
50
      } c_bypass;
 
51
 
 
52
      struct {
 
53
        int chain;     /**< @see ECA_CHAINSETUP::get_chain_index() */
 
54
        bool enabled;
 
55
      } c_muting;
 
56
 
 
57
      struct {
 
58
        int chain;     /**< @see ECA_CHAINSETUP::get_chain_index() */
 
59
        int op;        /**< @see CHAIN::set_parameter() */
 
60
        int param;     /**< @see CHAIN::set_parameter() */
 
61
        double value;  /**< @see CHAIN::set_parameter() */
 
62
      } cop_set_param;
 
63
      
 
64
      struct {
 
65
        int chain;     /**< @see ECA_CHAINSETUP::get_chain_index() */
 
66
        int op;        /**< @see CHAIN::set_controller_parameter() */
 
67
        int param;     /**< @see CHAIN::set_controller_parameter() */
 
68
        double value;  /**< @see CHAIN::set_controller_parameter() */
 
69
      } ctrl_set_param;
 
70
    } m;
 
71
  };
 
72
 
 
73
  typedef struct chainsetup_edit chainsetup_edit_t;
 
74
}
 
75
 
 
76
#endif /* INCLUDED_ECA_CHAINSETUP_EDIT_H */