~ubuntu-branches/ubuntu/wily/ecasound/wily-proposed

« back to all changes in this revision

Viewing changes to libecasound/audioio-acseq.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghedini
  • Date: 2011-05-12 17:58:03 UTC
  • Revision ID: james.westby@ubuntu.com-20110512175803-zy3lodjecabt9r3v
Tags: upstream-2.8.0
ImportĀ upstreamĀ versionĀ 2.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef INCLUDED_AUDIOIO_CLIP_SEQUENCER_H
 
2
#define INCLUDED_AUDIOIO_CLIP_SEQUENCER_H
 
3
 
 
4
#include "audioio-seqbase.h"
 
5
 
 
6
/**
 
7
 * Audio clip sequencer class. Allows to loop, play parts
 
8
 * of, and play files at a specific moment of time.
 
9
 *
 
10
 * Related design patterns:
 
11
 *     - Proxy (GoF207
 
12
 *
 
13
 * @author Kai Vehmanen
 
14
 */
 
15
class AUDIO_CLIP_SEQUENCER : public AUDIO_SEQUENCER_BASE {
 
16
 
 
17
 public:
 
18
 
 
19
  enum { cseq_none = 0, cseq_loop = 1, cseq_select = 2, cseq_play_at = 3 };
 
20
 
 
21
  /** @name Public functions */
 
22
  /*@{*/
 
23
 
 
24
  AUDIO_CLIP_SEQUENCER (void);
 
25
  virtual ~AUDIO_CLIP_SEQUENCER(void);
 
26
 
 
27
  /*@}*/
 
28
  
 
29
  /** @name Reimplemented functions from ECA_OBJECT */
 
30
  /*@{*/
 
31
 
 
32
  virtual std::string name(void) const { return("Audio clip sequencer"); }
 
33
  virtual std::string description(void) const { return("Audio clip sequencer. Supports looping and slicing of audio file segments."); }
 
34
 
 
35
  /*@}*/
 
36
 
 
37
  /** @name Reimplemented functions from DYNAMIC_PARAMETERS<string> */
 
38
  /*@{*/
 
39
 
 
40
  virtual std::string parameter_names(void) const;
 
41
  virtual void set_parameter(int param, string value);
 
42
  virtual string get_parameter(int param) const;
 
43
 
 
44
  /*@}*/
 
45
 
 
46
  /** @name Reimplemented functions from DYNAMIC_OBJECT<string> */
 
47
  /*@{*/
 
48
 
 
49
  virtual AUDIO_CLIP_SEQUENCER* clone(void) const;
 
50
  virtual AUDIO_CLIP_SEQUENCER* new_expr(void) const { return new AUDIO_CLIP_SEQUENCER(); }
 
51
 
 
52
  /*@}*/
 
53
 
 
54
  /** @name Reimplemented functions from ECA_AUDIO_POSITION */
 
55
  /*@{*/
 
56
 
 
57
 
 
58
  /*@}*/
 
59
 
 
60
  /** @name Reimplemented functions from AUDIO_IO */
 
61
  /*@{*/
 
62
 
 
63
  virtual void open(void) throw(AUDIO_IO::SETUP_ERROR&);
 
64
  virtual void close(void);
 
65
 
 
66
  /*@}*/
 
67
 
 
68
  /** @name New functions */
 
69
  /*@{*/
 
70
 
 
71
    
 
72
  /*@}*/
 
73
 
 
74
private:
 
75
 
 
76
  mutable std::vector<std::string> params_rep;
 
77
  int child_param_offset_rep;
 
78
  int cseq_mode_rep;
 
79
 
 
80
  AUDIO_CLIP_SEQUENCER& operator=(const AUDIO_CLIP_SEQUENCER& x) { return *this; }
 
81
  AUDIO_CLIP_SEQUENCER (const AUDIO_CLIP_SEQUENCER& x) { }
 
82
 
 
83
};
 
84
 
 
85
#endif