openMSX
Classes | Public Member Functions | List of all members
openmsx::CasImage Class Referencefinal

Code based on "cas2wav" tool by Vincent van Dam. More...

#include <CasImage.hh>

Inheritance diagram for openmsx::CasImage:
Inheritance graph
[legend]
Collaboration diagram for openmsx::CasImage:
Collaboration graph
[legend]

Classes

struct  Data
 

Public Member Functions

 CasImage (const Filename &fileName, FilePool &filePool, CliComm &cliComm)
 
int16_t getSampleAt (EmuTime::param time) const override
 
EmuTime getEndTime () const override
 
unsigned getFrequency () const override
 
void fillBuffer (unsigned pos, std::span< float *, 1 > bufs, unsigned num) const override
 
float getAmplificationFactorImpl () const override
 
- Public Member Functions inherited from openmsx::CassetteImage
virtual ~CassetteImage ()=default
 
FileType getFirstFileType () const
 
std::string getFirstFileTypeAsString () const
 
const Sha1SumgetSha1Sum () const
 Get sha1sum for this image.
 

Additional Inherited Members

- Public Types inherited from openmsx::CassetteImage
enum  FileType { ASCII , BINARY , BASIC , UNKNOWN }
 
- Protected Member Functions inherited from openmsx::CassetteImage
 CassetteImage ()=default
 
void setFirstFileType (FileType type)
 
void setSha1Sum (const Sha1Sum &sha1sum)
 

Detailed Description

Code based on "cas2wav" tool by Vincent van Dam.

Definition at line 17 of file CasImage.hh.

Constructor & Destructor Documentation

◆ CasImage()

openmsx::CasImage::CasImage ( const Filename fileName,
FilePool filePool,
CliComm cliComm 
)

Definition at line 295 of file CasImage.cc.

Member Function Documentation

◆ fillBuffer()

void openmsx::CasImage::fillBuffer ( unsigned  pos,
std::span< float *, 1 >  bufs,
unsigned  num 
) const
overridevirtual

Implements openmsx::CassetteImage.

Definition at line 318 of file CasImage.cc.

References openmsx::CasImage::Data::wave, and xrange().

◆ getAmplificationFactorImpl()

float openmsx::CasImage::getAmplificationFactorImpl ( ) const
overridevirtual

Implements openmsx::CassetteImage.

Definition at line 333 of file CasImage.cc.

◆ getEndTime()

EmuTime openmsx::CasImage::getEndTime ( ) const
overridevirtual

◆ getFrequency()

unsigned openmsx::CasImage::getFrequency ( ) const
overridevirtual

Implements openmsx::CassetteImage.

Definition at line 313 of file CasImage.cc.

References openmsx::CasImage::Data::frequency.

◆ getSampleAt()

int16_t openmsx::CasImage::getSampleAt ( EmuTime::param  time) const
overridevirtual

The documentation for this class was generated from the following files: