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

« back to all changes in this revision

Viewing changes to libecasound/eca-audio-time.h

  • Committer: Bazaar Package Importer
  • Author(s): Junichi Uekawa
  • Date: 2008-09-26 09:58:52 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080926095852-k3v9ewhmxpaltusw
Tags: 2.5.2-3
yodl 2.13.1 removed --unique-output option. Remove --unique-output
accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 private:
13
13
 
14
14
  SAMPLE_SPECS::sample_pos_t samples_rep;
15
 
  SAMPLE_SPECS::sample_rate_t sample_rate_rep;
 
15
  mutable SAMPLE_SPECS::sample_rate_t sample_rate_rep;
 
16
  mutable bool rate_set_rep;
 
17
 
 
18
  static const SAMPLE_SPECS::sample_rate_t default_srate = 384000;
 
19
  static const SAMPLE_SPECS::sample_rate_t invalid_srate = -1;
16
20
 
17
21
 public:
18
22
 
21
25
  ECA_AUDIO_TIME(SAMPLE_SPECS::sample_pos_t samples, SAMPLE_SPECS::sample_rate_t sample_rate);
22
26
  ECA_AUDIO_TIME(double time_in_seconds);
23
27
  ECA_AUDIO_TIME(format_type type, const std::string& time);
 
28
  ECA_AUDIO_TIME(const std::string& time);
24
29
  ECA_AUDIO_TIME(void);
25
30
 
26
31
  void set(format_type type, const std::string& time);
27
32
  void set_seconds(double seconds);
 
33
  void set_time_string(const std::string& time);
28
34
  void set_samples(SAMPLE_SPECS::sample_pos_t samples);
29
35
  void set_samples_per_second(long int srate);
30
36
  void set_samples_per_second_keeptime(long int srate);
31
 
    
 
37
  void mark_as_invalid(void);
 
38
 
32
39
  std::string to_string(format_type type) const;
33
40
  double seconds(void) const;
34
41
  SAMPLE_SPECS::sample_rate_t samples_per_second(void) const;
35
42
  SAMPLE_SPECS::sample_pos_t samples(void) const;
 
43
  bool valid(void) const;
36
44
};
37
45
 
38
46
#endif