openMSX
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]

Public Member Functions

 CasImage (const Filename &fileName, FilePool &filePool, CliComm &cliComm)
 
int16_t getSampleAt (EmuTime::param time) override
 
EmuTime getEndTime () const override
 
unsigned getFrequency () const override
 
void fillBuffer (unsigned pos, float **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. More...
 

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 18 of file CasImage.hh.

Constructor & Destructor Documentation

◆ CasImage()

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

Member Function Documentation

◆ fillBuffer()

void openmsx::CasImage::fillBuffer ( unsigned  pos,
float **  bufs,
unsigned  num 
) const
overridevirtual

Implements openmsx::CassetteImage.

Definition at line 77 of file CasImage.cc.

References openmsx::AUDIO_OVERSAMPLE, and xrange().

◆ getAmplificationFactorImpl()

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

Implements openmsx::CassetteImage.

Definition at line 92 of file CasImage.cc.

◆ getEndTime()

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

Implements openmsx::CassetteImage.

Definition at line 65 of file CasImage.cc.

References openmsx::Clock< FREQ_NUM, FREQ_DENOM >::getTime().

◆ getFrequency()

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

Implements openmsx::CassetteImage.

Definition at line 72 of file CasImage.cc.

References openmsx::AUDIO_OVERSAMPLE, and openmsx::OUTPUT_FREQUENCY.

◆ getSampleAt()

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

Implements openmsx::CassetteImage.

Definition at line 58 of file CasImage.cc.


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