foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
cuesheet_format_index_time

#include <chapterizer.h>

Public Member Functions

 cuesheet_format_index_time (double p_time)
 
 operator const char * () const
 

Private Attributes

pfc::string_formatter m_buffer
 

Detailed Description

Definition at line 90 of file chapterizer.h.

Constructor & Destructor Documentation

cuesheet_format_index_time::cuesheet_format_index_time ( double  p_time)

Definition at line 35 of file chapterizer.cpp.

36 {
37  t_uint64 ticks = audio_math::time_to_samples(p_time,75);
38  t_uint64 seconds = ticks / 75; ticks %= 75;
39  t_uint64 minutes = seconds / 60; seconds %= 60;
40  m_buffer << pfc::format_uint(minutes,2) << ":" << pfc::format_uint(seconds,2) << ":" << pfc::format_uint(ticks,2);
41 }
uint64_t t_uint64
Definition: int_types.h:3
pfc::string_formatter m_buffer
Definition: chapterizer.h:96

Member Function Documentation

cuesheet_format_index_time::operator const char * ( ) const
inline

Definition at line 94 of file chapterizer.h.

94 {return m_buffer;}
pfc::string_formatter m_buffer
Definition: chapterizer.h:96

Field Documentation

pfc::string_formatter cuesheet_format_index_time::m_buffer
private

Definition at line 96 of file chapterizer.h.


The documentation for this class was generated from the following files: