foobar2000 SDK  2015-08-03
cuesheet_index_list.h
Go to the documentation of this file.
2 {
3  enum {count = 100};
5  void reset() {for(unsigned n=0;n<count;n++) m_positions[n]=0;}
6 
7  void to_infos(file_info & p_out) const;
8 
9  //returns false when there was nothing relevant in infos
10  bool from_infos(file_info const & p_in,double p_base);
11 
12  double m_positions[count];
13 
14  inline double start() const {return m_positions[1];}
15  inline double pregap() const {return m_positions[1] - m_positions[0];}
16  bool is_empty() const;
17 
18  bool is_valid() const;
19 };
20 
void to_infos(file_info &p_out) const
Main interface class for information about some playable object.
Definition: file_info.h:73
bool from_infos(file_info const &p_in, double p_base)