Mercurial > foo_out_sdl
view foosdk/sdk/foobar2000/helpers/cuesheet_index_list.h @ 1:20d02a178406 default tip
*: check in everything else
yay
| author | Paper <paper@tflc.us> |
|---|---|
| date | Mon, 05 Jan 2026 02:15:46 -0500 |
| parents | |
| children |
line wrap: on
line source
#pragma once unsigned cuesheet_parse_index_time_ticks_e(const char * p_string,t_size p_length); double cuesheet_parse_index_time_e(const char * p_string,t_size p_length); class cuesheet_format_index_time { public: cuesheet_format_index_time(double p_time); inline operator const char*() const {return m_buffer;} private: pfc::string_formatter m_buffer; }; struct t_cuesheet_index_list { enum {count = 100}; t_cuesheet_index_list() {reset();} void reset() {for(unsigned n=0;n<count;n++) m_positions[n]=0;} void to_infos(file_info & p_out) const; //returns false when there was nothing relevant in infos bool from_infos(file_info const & p_in,double p_base); double m_positions[count]; inline double start() const {return m_positions[1];} inline double pregap() const {return m_positions[1] - m_positions[0];} bool is_empty() const; bool is_valid() const; };
