ScummVM API documentation
Audio::RealChip Class Reference

#include <chip.h>

Inheritance diagram for Audio::RealChip:
Audio::Chip OPL::RetroWaveOPL3::OPL

Public Member Functions

void setCallbackFrequency (int timerFrequency)
 
- Public Member Functions inherited from Audio::Chip
void start (TimerCallback *callback, int timerFrequency)
 
void stop ()
 

Protected Member Functions

void startCallbacks (int timerFrequency)
 
void stopCallbacks ()
 
virtual void onTimer ()
 

Additional Inherited Members

- Public Types inherited from Audio::Chip
typedef Common::Functor0< void > TimerCallback
 
- Protected Attributes inherited from Audio::Chip
Common::ScopedPtr< TimerCallback_callback
 

Detailed Description

A Chip that represents a real sound chip, as opposed to an emulated one.

This will use an actual timer instead of using one calculated from the number of samples in an AudioStream::readBuffer call.

Member Function Documentation

◆ setCallbackFrequency()

void Audio::RealChip::setCallbackFrequency ( int  timerFrequency)
virtual

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

Implements Audio::Chip.

◆ startCallbacks()

void Audio::RealChip::startCallbacks ( int  timerFrequency)
protectedvirtual

Start the callbacks.

Implements Audio::Chip.

◆ stopCallbacks()

void Audio::RealChip::stopCallbacks ( )
protectedvirtual

Stop the callbacks.

Implements Audio::Chip.


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