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);
26
31
void set(format_type type, const std::string& time);
27
32
void set_seconds(double seconds);
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);
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;