// $Id: RomPlayBall.hh 6076 2007-02-12 21:58:31Z m9710797 $ #ifndef ROMPLAYBALL_HH #define ROMPLAYBALL_HH #include "Rom16kBBlocks.hh" namespace openmsx { class SamplePlayer; class WavData; class RomPlayBall : public Rom16kBBlocks { public: RomPlayBall(MSXMotherBoard& motherBoard, const XMLElement& config, const EmuTime& time, std::auto_ptr rom); virtual ~RomPlayBall(); virtual void reset(const EmuTime& time); virtual byte peekMem(word address, const EmuTime& time) const; virtual byte readMem(word address, const EmuTime& time); virtual const byte* getReadCacheLine(word address) const; virtual void writeMem(word address, byte value, const EmuTime& time); virtual byte* getWriteCacheLine(word address) const; private: std::auto_ptr samplePlayer; std::auto_ptr sample[15]; }; } // namespace openmsx #endif