#include <packed_audio_segmenter.h>
Implements packed audio segment writer. https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-3.4 A Packed Audio Segment contains encoded audio samples and ID3 tags that are simply packed together with minimal framing and no per-sample timestamps.
Definition at line 40 of file packed_audio_segmenter.h.
◆ PackedAudioSegmenter()
shaka::media::PackedAudioSegmenter::PackedAudioSegmenter |
( |
uint32_t |
transport_stream_timestamp_offset | ) |
|
|
explicit |
- Parameters
-
transport_stream_timestamp_offset | is the offset to be applied to sample timestamps to compensate for possible negative timestamps in the input. |
Definition at line 27 of file packed_audio_segmenter.cc.
◆ AddSample()
◆ FinalizeSegment()
Status shaka::media::PackedAudioSegmenter::FinalizeSegment |
( |
| ) |
|
|
virtual |
Flush all the samples that are (possibly) buffered and write them to the current segment.
- Returns
- OK on success.
Definition at line 76 of file packed_audio_segmenter.cc.
◆ Initialize()
Status shaka::media::PackedAudioSegmenter::Initialize |
( |
const StreamInfo & |
stream_info | ) |
|
|
virtual |
Initialize the object.
- Parameters
-
stream_info | is the stream info for the segmenter. |
- Returns
- OK on success.
Definition at line 33 of file packed_audio_segmenter.cc.
◆ segment_buffer()
BufferWriter* shaka::media::PackedAudioSegmenter::segment_buffer |
( |
| ) |
|
|
inline |
◆ TimescaleScale()
double shaka::media::PackedAudioSegmenter::TimescaleScale |
( |
| ) |
const |
|
virtual |
- Returns
- The scale for converting timestamp in input stream's scale to output stream's scale.
Definition at line 81 of file packed_audio_segmenter.cc.
The documentation for this class was generated from the following files: