OpenTTD
SoundDriver_Null Class Reference

Implementation of the null sound driver. More...

#include <null_s.h>

Inheritance diagram for SoundDriver_Null:
SoundDriver Driver

Public Member Functions

const char * Start (const char *const *param) override
 Start this driver. More...
 
void Stop () override
 Stop this driver.
 
const char * GetName () const override
 Get the name of this driver. More...
 
- Public Member Functions inherited from SoundDriver
virtual void MainLoop ()
 Called once every tick.
 

Additional Inherited Members

- Public Types inherited from Driver
enum  Type {
  DT_BEGIN = 0, DT_MUSIC = 0, DT_SOUND, DT_VIDEO,
  DT_END
}
 The type of driver. More...
 
- Static Public Member Functions inherited from SoundDriver
static SoundDriverGetInstance ()
 Get the currently active instance of the sound driver.
 

Detailed Description

Implementation of the null sound driver.

Definition at line 16 of file null_s.h.

Member Function Documentation

◆ GetName()

const char* SoundDriver_Null::GetName ( ) const
inlineoverridevirtual

Get the name of this driver.

Returns
The name of the driver.

Implements Driver.

Definition at line 21 of file null_s.h.

◆ Start()

const char* SoundDriver_Null::Start ( const char *const *  parm)
inlineoverridevirtual

Start this driver.

Parameters
parmParameters passed to the driver.
Returns
nullptr if everything went okay, otherwise an error message.

Implements Driver.

Definition at line 18 of file null_s.h.


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