ScummVM API documentation
Audio::Chip Class Referenceabstract
Inheritance diagram for Audio::Chip:
Audio::EmulatedChip Audio::RealChip CMS::CMS OPL::OPL DOSBoxCMS OPL::DOSBox::OPL OPL::MAME::OPL OPL::NUKED::OPL OPL::RetroWaveOPL3::OPL DOSBoxCMS OPL::DOSBox::OPL OPL::MAME::OPL OPL::NUKED::OPL OPL::RetroWaveOPL3::OPL

Public Types

typedef Common::Functor0< void > TimerCallback
 

Public Member Functions

void start (TimerCallback *callback, int timerFrequency)
 
void stop ()
 
virtual void setCallbackFrequency (int timerFrequency)=0
 

Protected Member Functions

virtual void startCallbacks (int timerFrequency)=0
 
virtual void stopCallbacks ()=0
 

Protected Attributes

Common::ScopedPtr< TimerCallback_callback
 

Member Typedef Documentation

◆ TimerCallback

The type of the timer callback functor.

Member Function Documentation

◆ start()

void Audio::Chip::start ( TimerCallback callback,
int  timerFrequency 
)

Start the sound chip with callbacks.

◆ stop()

void Audio::Chip::stop ( )

Stop the sound chip

◆ setCallbackFrequency()

virtual void Audio::Chip::setCallbackFrequency ( int  timerFrequency)
pure virtual

Change the callback frequency. This must only be called from a timer proc.

Implemented in Audio::EmulatedChip, and Audio::RealChip.

◆ startCallbacks()

virtual void Audio::Chip::startCallbacks ( int  timerFrequency)
protectedpure virtual

Start the callbacks.

Implemented in Audio::EmulatedChip, and Audio::RealChip.

◆ stopCallbacks()

virtual void Audio::Chip::stopCallbacks ( )
protectedpure virtual

Stop the callbacks.

Implemented in Audio::EmulatedChip, and Audio::RealChip.

Member Data Documentation

◆ _callback

Common::ScopedPtr<TimerCallback> Audio::Chip::_callback
protected

The functor for callbacks.


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