foobar2000 SDK
2015-08-03
|
#include <audio_chunk.h>
Public Member Functions | |
duration_counter () | |
void | add (double v) |
void | add (const audio_chunk &c) |
void | add (t_uint64 sampleCount, t_uint32 sampleRate) |
void | add (const duration_counter &other) |
template<typename t_source > | |
duration_counter & | operator+= (const t_source &source) |
template<typename t_source > | |
duration_counter & | operator-= (const t_source &source) |
template<typename t_source > | |
duration_counter & | operator= (const t_source &source) |
double | query () const |
uint64_t | queryAsSampleCount (uint32_t rate) |
void | reset () |
void | set (double v) |
void | subtract (double v) |
void | subtract (const duration_counter &other) |
void | subtract (t_uint64 sampleCount, t_uint32 sampleRate) |
void | subtract (const audio_chunk &c) |
Private Types | |
typedef pfc::map_t< t_uint32, t_uint64 > | t_map |
Private Attributes | |
double | m_offset |
t_map | m_sampleCounts |
Duration counter class - accumulates duration using sample values, without any kind of rounding error accumulation.
Definition at line 313 of file audio_chunk.h.
|
private |
Definition at line 374 of file audio_chunk.h.
|
inline |
Definition at line 315 of file audio_chunk.h.
|
inline |
Definition at line 325 of file audio_chunk.h.
|
inline |
Definition at line 331 of file audio_chunk.h.
Definition at line 334 of file audio_chunk.h.
|
inline |
Definition at line 340 of file audio_chunk.h.
|
inline |
Definition at line 369 of file audio_chunk.h.
|
inline |
Definition at line 370 of file audio_chunk.h.
|
inline |
Definition at line 371 of file audio_chunk.h.
double duration_counter::query | ( | ) | const |
Definition at line 598 of file audio_chunk.cpp.
uint64_t duration_counter::queryAsSampleCount | ( | uint32_t | rate | ) |
Definition at line 606 of file audio_chunk.cpp.
|
inline |
Definition at line 321 of file audio_chunk.h.
|
inline |
Definition at line 317 of file audio_chunk.h.
|
inline |
Definition at line 326 of file audio_chunk.h.
|
inline |
Definition at line 346 of file audio_chunk.h.
Definition at line 352 of file audio_chunk.h.
|
inline |
Definition at line 366 of file audio_chunk.h.
|
private |
Definition at line 373 of file audio_chunk.h.
|
private |
Definition at line 375 of file audio_chunk.h.