openMSX
Public Member Functions | List of all members
openmsx::WavImage Class Reference

#include <WavImage.hh>

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

Public Member Functions

 WavImage (const Filename &filename, FilePool &filePool)
 
virtual ~WavImage ()
 
virtual short getSampleAt (EmuTime::param time)
 
virtual EmuTime getEndTime () const
 
virtual unsigned getFrequency () const
 
virtual void fillBuffer (unsigned pos, int **bufs, unsigned num) const
 
- Public Member Functions inherited from openmsx::CassetteImage
virtual ~CassetteImage ()
 
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 ()
 
void setFirstFileType (FileType type)
 
void setSha1Sum (const Sha1Sum &sha1sum)
 

Detailed Description

Definition at line 14 of file WavImage.hh.

Constructor & Destructor Documentation

openmsx::WavImage::WavImage ( const Filename filename,
FilePool filePool 
)
explicit
openmsx::WavImage::~WavImage ( )
virtual

Definition at line 40 of file WavImage.cc.

Member Function Documentation

void openmsx::WavImage::fillBuffer ( unsigned  pos,
int **  bufs,
unsigned  num 
) const
virtual

Implements openmsx::CassetteImage.

Definition at line 71 of file WavImage.cc.

References openmsx::WavData::getSize(), and xrange().

EmuTime openmsx::WavImage::getEndTime ( ) const
virtual

Implements openmsx::CassetteImage.

Definition at line 59 of file WavImage.cc.

References openmsx::WavData::getSize(), and openmsx::DynamicClock::getTime().

unsigned openmsx::WavImage::getFrequency ( ) const
virtual

Implements openmsx::CassetteImage.

Definition at line 66 of file WavImage.cc.

References openmsx::DynamicClock::getFreq().

short openmsx::WavImage::getSampleAt ( EmuTime::param  time)
virtual

Implements openmsx::CassetteImage.

Definition at line 53 of file WavImage.cc.

References Math::clipIntToShort(), and openmsx::DynamicClock::getTicksTill().


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