Shaka Packager SDK
Loading...
Searching...
No Matches
Public Member Functions | List of all members
shaka::media::AudioTimestampHelper Class Reference

Public Member Functions

 AudioTimestampHelper (int32_t timescale, uint32_t samples_per_second)
 
void SetBaseTimestamp (int64_t base_timestamp)
 
int64_t base_timestamp () const
 
int64_t frame_count () const
 
void AddFrames (int64_t frame_count)
 
int64_t GetTimestamp () const
 
int64_t GetFrameDuration (int64_t frame_count) const
 
int64_t GetFramesToTarget (int64_t target) const
 

Detailed Description

Definition at line 30 of file audio_timestamp_helper.h.

Constructor & Destructor Documentation

◆ AudioTimestampHelper()

shaka::media::AudioTimestampHelper::AudioTimestampHelper ( int32_t  timescale,
uint32_t  samples_per_second 
)
explicit

Definition at line 15 of file audio_timestamp_helper.cc.

Member Function Documentation

◆ AddFrames()

void shaka::media::AudioTimestampHelper::AddFrames ( int64_t  frame_count)

Definition at line 32 of file audio_timestamp_helper.cc.

◆ base_timestamp()

int64_t shaka::media::AudioTimestampHelper::base_timestamp ( ) const

Definition at line 28 of file audio_timestamp_helper.cc.

◆ frame_count()

int64_t shaka::media::AudioTimestampHelper::frame_count ( ) const
inline

Definition at line 38 of file audio_timestamp_helper.h.

◆ GetFrameDuration()

int64_t shaka::media::AudioTimestampHelper::GetFrameDuration ( int64_t  frame_count) const

Definition at line 42 of file audio_timestamp_helper.cc.

◆ GetFramesToTarget()

int64_t shaka::media::AudioTimestampHelper::GetFramesToTarget ( int64_t  target) const

Definition at line 48 of file audio_timestamp_helper.cc.

◆ GetTimestamp()

int64_t shaka::media::AudioTimestampHelper::GetTimestamp ( ) const

Definition at line 38 of file audio_timestamp_helper.cc.

◆ SetBaseTimestamp()

void shaka::media::AudioTimestampHelper::SetBaseTimestamp ( int64_t  base_timestamp)

Definition at line 23 of file audio_timestamp_helper.cc.


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