mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-10 21:26:33 +00:00
32 lines
862 B
C++
32 lines
862 B
C++
// RING RACERS
|
|
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2023 by James Robert Roman
|
|
//
|
|
// This program is free software distributed under the
|
|
// terms of the GNU General Public License, version 2.
|
|
// See the 'LICENSE' file for more details.
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef __SRB2_MEDIA_WEBM_WRITER_HPP__
|
|
#define __SRB2_MEDIA_WEBM_WRITER_HPP__
|
|
|
|
#include <cstdio>
|
|
#include <string>
|
|
|
|
#include <mkvmuxer/mkvwriter.h>
|
|
|
|
#include "cfile.hpp"
|
|
|
|
namespace srb2::media
|
|
{
|
|
|
|
class WebmWriter : public CFile, public mkvmuxer::MkvWriter
|
|
{
|
|
public:
|
|
WebmWriter(const std::string file_name) : CFile(file_name), MkvWriter(static_cast<std::FILE*>(*this)) {}
|
|
~WebmWriter() { MkvWriter::Close(); }
|
|
};
|
|
|
|
}; // namespace srb2::media
|
|
|
|
#endif // __SRB2_MEDIA_WEBM_WRITER_HPP__
|