openMSX
TsxImage.hh
Go to the documentation of this file.
1// Based on code written by:
2// (2017) NataliaPC aka @ishwin74
3// Under GPL License
4
5#ifndef TSXIMAGE_HH
6#define TSXIMAGE_HH
7
8#include "CassetteImage.hh"
9#include <vector>
10
11namespace openmsx {
12
13class CliComm;
14class Filename;
15class FilePool;
16
17class TsxImage final : public CassetteImage
18{
19public:
20 TsxImage(const Filename& fileName, FilePool& filePool, CliComm& cliComm);
21
22 // CassetteImage
23 [[nodiscard]] int16_t getSampleAt(EmuTime::param time) const override;
24 [[nodiscard]] EmuTime getEndTime() const override;
25 [[nodiscard]] unsigned getFrequency() const override;
26 void fillBuffer(unsigned pos, std::span<float*, 1> bufs, unsigned num) const override;
27 [[nodiscard]] float getAmplificationFactorImpl() const override;
28
29private:
30 /*const*/ std::vector<signed char> output;
31};
32
33} // namespace openmsx
34
35#endif
This class represents a filename.
Definition Filename.hh:20
EmuTime getEndTime() const override
Definition TsxImage.cc:57
void fillBuffer(unsigned pos, std::span< float *, 1 > bufs, unsigned num) const override
Definition TsxImage.cc:69
float getAmplificationFactorImpl() const override
Definition TsxImage.cc:84
int16_t getSampleAt(EmuTime::param time) const override
Definition TsxImage.cc:50
unsigned getFrequency() const override
Definition TsxImage.cc:64
This file implemented 3 utility functions:
Definition Autofire.cc:11