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

« back to all changes in this revision

Viewing changes to libecasound/ctrl-source.h

  • Committer: Bazaar Package Importer
  • Author(s): Junichi Uekawa
  • Date: 2005-04-14 09:15:48 UTC
  • Revision ID: james.westby@ubuntu.com-20050414091548-o7kgb47z0tcunh0s
Tags: upstream-2.4.1
ImportĀ upstreamĀ versionĀ 2.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef INCLUDE_CTRL_SOURCE_H
 
2
#define INCLUDE_CTRL_SOURCE_H
 
3
 
 
4
#include "eca-audio-position.h"
 
5
#include "eca-operator.h"
 
6
 
 
7
/**
 
8
 * Interface class for implementing control data
 
9
 * source objects. 
 
10
 */
 
11
class CONTROLLER_SOURCE : public OPERATOR,
 
12
                          public ECA_AUDIO_POSITION {
 
13
 
 
14
 public:
 
15
 
 
16
  typedef SAMPLE_SPECS::sample_t parameter_t;
 
17
 
 
18
  /**
 
19
   * Initialize controller source
 
20
   */
 
21
  virtual void init(void) = 0;
 
22
 
 
23
  /**
 
24
   * Returns the current value. Standard value range is [0,1].
 
25
   */
 
26
  virtual parameter_t value(void) = 0; 
 
27
 
 
28
  virtual CONTROLLER_SOURCE* clone(void) const = 0;
 
29
  virtual CONTROLLER_SOURCE* new_expr(void) const = 0;
 
30
};
 
31
 
 
32
#endif