ScummVM API documentation
MixerManager Class Referenceabstract

#include <mixer.h>

Inheritance diagram for MixerManager:
AtariMixerManager MaxModMixerManager NullMixerManager SdlMixerManager

Public Member Functions

virtual void init ()=0
 
Audio::MixergetMixer ()
 
virtual void suspendAudio ()=0
 
virtual int resumeAudio ()=0
 
virtual bool isNullDevice () const
 

Protected Attributes

Audio::MixerImpl_mixer
 
bool _audioSuspended
 

Detailed Description

Abstract class for mixer manager. Subclasses implement the real functionality.

Member Function Documentation

◆ init()

virtual void MixerManager::init ( )
pure virtual

Initialize and setups the mixer

Implemented in MaxModMixerManager, SdlMixerManager, NullMixerManager, and AtariMixerManager.

◆ getMixer()

Audio::Mixer* MixerManager::getMixer ( void  )
inline

Get the audio mixer implementation

◆ suspendAudio()

virtual void MixerManager::suspendAudio ( )
pure virtual

Pauses the audio system

Implemented in SdlMixerManager, MaxModMixerManager, NullMixerManager, and AtariMixerManager.

◆ resumeAudio()

virtual int MixerManager::resumeAudio ( )
pure virtual

Resumes the audio system

Implemented in SdlMixerManager, MaxModMixerManager, NullMixerManager, and AtariMixerManager.

◆ isNullDevice()

virtual bool MixerManager::isNullDevice ( ) const
inlinevirtual

Returns true if this is a null device and won't output any audio.

Reimplemented in NullMixerManager.

Member Data Documentation

◆ _mixer

Audio::MixerImpl* MixerManager::_mixer
protected

The mixer implementation

◆ _audioSuspended

bool MixerManager::_audioSuspended
protected

State of the audio system


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