42 }
catch (
const std::string& msg) {
54 return pos < output.size() ? output[pos] * 256 : 0;
60 clk += unsigned(output.size());
71 size_t nbSamples = output.size();
72 if (pos < nbSamples) {
73 for (
auto i :
xrange(num)) {
74 bufs[0][i] = (pos < nbSamples)
const std::vector< std::string > & getMessages() const
std::optional< FileType > getFirstFileType() const
std::vector< int8_t > && stealOutput()
static constexpr unsigned OUTPUT_FREQUENCY
void setSha1Sum(const Sha1Sum &sha1sum)
void setFirstFileType(FileType type)
void printInfo(std::string_view message)
Represents a clock with a fixed frequency.
constexpr EmuTime::param getTime() const
Gets the time at which the last clock tick occurred.
constexpr unsigned getTicksTill(EmuTime::param e) const
Calculate the number of ticks for this clock until the given time.
Sha1Sum getSha1Sum(File &file)
Calculate sha1sum for the given File object.
std::span< const uint8_t > mmap()
Map file in memory.
This class represents a filename.
const std::string & getOriginal() const
EmuTime getEndTime() const override
void fillBuffer(unsigned pos, std::span< float *, 1 > bufs, unsigned num) const override
float getAmplificationFactorImpl() const override
int16_t getSampleAt(EmuTime::param time) const override
TsxImage(const Filename &fileName, FilePool &filePool, CliComm &cliComm)
unsigned getFrequency() const override
This file implemented 3 utility functions:
constexpr auto xrange(T e)