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

Constructor & Destructor Documentation

◆ CasImage()

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

Definition at line 289 of file CasImage.cc.

Member Function Documentation

◆ fillBuffer()

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

Implements openmsx::CassetteImage.

Definition at line 312 of file CasImage.cc.

References openmsx::AUDIO_OVERSAMPLE, and xrange().

◆ getAmplificationFactorImpl()

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

Implements openmsx::CassetteImage.

Definition at line 327 of file CasImage.cc.

◆ getEndTime()

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

Implements openmsx::CassetteImage.

Definition at line 301 of file CasImage.cc.

References openmsx::EmuDuration::hz().

◆ getFrequency()

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

Implements openmsx::CassetteImage.

Definition at line 307 of file CasImage.cc.

References openmsx::AUDIO_OVERSAMPLE.

◆ getSampleAt()

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

Implements openmsx::CassetteImage.

Definition at line 294 of file CasImage.cc.

References openmsx::EmuDuration::getTicksAt().


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