ScummVM API documentation
NullMixerManager Class Reference

#include <null-mixer.h>

Inheritance diagram for NullMixerManager:
MixerManager

Public Member Functions

void init () override
 
void update (uint8 callbackPeriod=10)
 
void suspendAudio () override
 
int resumeAudio () override
 
bool isNullDevice () const override
 
- Public Member Functions inherited from MixerManager
Audio::MixergetMixer ()
 

Additional Inherited Members

- Protected Attributes inherited from MixerManager
Audio::MixerImpl_mixer
 
bool _audioSuspended
 

Detailed Description

Audio mixer which in fact does not output audio.

It is used by events recorder since the recorder is intentionally turning sound off to avoid stuttering.

It returns correct output and shoots callbacks, so all OSystem users could work without modifications.

Member Function Documentation

◆ init()

void NullMixerManager::init ( )
overridevirtual

Initialize and setups the mixer

Implements MixerManager.

◆ suspendAudio()

void NullMixerManager::suspendAudio ( )
overridevirtual

Pauses the audio system

Implements MixerManager.

◆ resumeAudio()

int NullMixerManager::resumeAudio ( )
overridevirtual

Resumes the audio system

Implements MixerManager.

◆ isNullDevice()

bool NullMixerManager::isNullDevice ( ) const
overridevirtual

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

Reimplemented from MixerManager.


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