7 #ifndef PACKAGER_MEDIA_FORMATS_PACKED_AUDIO_PACKED_AUDIO_WRITER_H_ 8 #define PACKAGER_MEDIA_FORMATS_PACKED_AUDIO_PACKED_AUDIO_WRITER_H_ 10 #include "packager/file/file_closer.h" 11 #include "packager/media/base/muxer.h" 17 class PackedAudioSegmenter;
30 friend class PackedAudioWriterTest;
36 Status InitializeMuxer()
override;
37 Status Finalize()
override;
41 Status WriteSegment(
const std::string& segment_path,
44 Status CloseFile(std::unique_ptr<File, FileCloser> file);
46 std::unique_ptr<PackedAudioSegmenter> segmenter_;
49 std::unique_ptr<File, FileCloser> output_file_;
52 uint64_t total_duration_ = 0;
55 uint64_t segment_number_ = 0;
61 #endif // PACKAGER_MEDIA_FORMATS_PACKED_AUDIO_PACKED_AUDIO_WRITER_H_
All the methods that are virtual are virtual for mocking.