OXYGENHUB
◆ main openmsx / src / cassette / TsxImage.hh
809 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 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
11
namespace openmsx {
12
13
class CliComm;
14
class Filename;
15
class FilePool;
16
17
class TsxImage final : public CassetteImage
18
{
19
public:
20
	TsxImage(const Filename& fileName, FilePool& filePool, CliComm& cliComm);
21
22
	// CassetteImage
23
	[[nodiscard]] int16_t getSampleAt(EmuTime 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
29
private:
30
	/*const*/ std::vector<signed char> output;
31
};
32
33
} // namespace openmsx
34
35
#endif