openMSX
|
#include <AviRecorder.hh>
Public Member Functions | |
AviRecorder (Reactor &reactor) | |
~AviRecorder () | |
void | addWave (std::span< const StereoFloat > data) |
void | addImage (const FrameSource *frame, EmuTime::param time) |
void | stop () |
unsigned | getFrameHeight () const |
bool | isRecording () const |
Static Public Attributes | |
static constexpr std::string_view | VIDEO_DIR = "videos" |
static constexpr std::string_view | AUDIO_DIR = "soundlogs" |
static constexpr std::string_view | VIDEO_EXTENSION = ".avi" |
static constexpr std::string_view | AUDIO_EXTENSION = ".wav" |
Definition at line 25 of file AviRecorder.hh.
|
explicit |
Definition at line 31 of file AviRecorder.cc.
openmsx::AviRecorder::~AviRecorder | ( | ) |
Definition at line 37 of file AviRecorder.cc.
void openmsx::AviRecorder::addImage | ( | const FrameSource * | frame, |
EmuTime::param | time | ||
) |
Definition at line 177 of file AviRecorder.cc.
References openmsx::Reactor::getCliComm(), openmsx::EmuDuration::infinity(), openmsx::CliComm::printWarning(), openmsx::EmuDuration::toDouble(), and openmsx::MSXMixer::updateStream().
Referenced by openmsx::PostProcessor::rotateFrames().
void openmsx::AviRecorder::addWave | ( | std::span< const StereoFloat > | data | ) |
Definition at line 124 of file AviRecorder.cc.
References enumerate(), openmsx::Reactor::getCliComm(), openmsx::MSXMixer::getSampleRate(), and openmsx::CliComm::printWarning().
Referenced by openmsx::MSXMixer::updateStream().
unsigned openmsx::AviRecorder::getFrameHeight | ( | ) | const |
Definition at line 202 of file AviRecorder.cc.
bool openmsx::AviRecorder::isRecording | ( | ) | const |
Definition at line 291 of file AviRecorder.cc.
void openmsx::AviRecorder::stop | ( | ) |
Definition at line 104 of file AviRecorder.cc.
References openmsx::MSXMixer::setRecorder().
Referenced by openmsx::PostProcessor::rotateFrames(), openmsx::MSXMixer::~MSXMixer(), and openmsx::PostProcessor::~PostProcessor().
|
staticconstexpr |
Definition at line 29 of file AviRecorder.hh.
|
staticconstexpr |
Definition at line 31 of file AviRecorder.hh.
|
staticconstexpr |
Definition at line 28 of file AviRecorder.hh.
|
staticconstexpr |
Definition at line 30 of file AviRecorder.hh.