openMSX
Public Member Functions | Protected Member Functions | List of all members
openmsx::SoundDriver Class Referenceabstract

#include <SoundDriver.hh>

Inheritance diagram for openmsx::SoundDriver:
Inheritance graph
[legend]

Public Member Functions

virtual ~SoundDriver ()=default
 
virtual void mute ()=0
 Mute the sound system. More...
 
virtual void unmute ()=0
 Unmute the sound system. More...
 
virtual unsigned getFrequency () const =0
 Returns the actual sample frequency. More...
 
virtual unsigned getSamples () const =0
 Get the number of samples that should be created 'per fragment'. More...
 
virtual void uploadBuffer (float *buffer, unsigned len)=0
 

Protected Member Functions

 SoundDriver ()=default
 

Detailed Description

Definition at line 6 of file SoundDriver.hh.

Constructor & Destructor Documentation

◆ ~SoundDriver()

virtual openmsx::SoundDriver::~SoundDriver ( )
virtualdefault

◆ SoundDriver()

openmsx::SoundDriver::SoundDriver ( )
protecteddefault

Member Function Documentation

◆ getFrequency()

virtual unsigned openmsx::SoundDriver::getFrequency ( ) const
pure virtual

Returns the actual sample frequency.

This might be different from the requested frequency ('frequency' setting).

Implemented in openmsx::SDLSoundDriver, and openmsx::NullSoundDriver.

◆ getSamples()

virtual unsigned openmsx::SoundDriver::getSamples ( ) const
pure virtual

Get the number of samples that should be created 'per fragment'.

This is not the same value as the 'samples setting'.

Implemented in openmsx::SDLSoundDriver, and openmsx::NullSoundDriver.

◆ mute()

virtual void openmsx::SoundDriver::mute ( )
pure virtual

Mute the sound system.

Implemented in openmsx::SDLSoundDriver, and openmsx::NullSoundDriver.

◆ unmute()

virtual void openmsx::SoundDriver::unmute ( )
pure virtual

Unmute the sound system.

Implemented in openmsx::SDLSoundDriver, and openmsx::NullSoundDriver.

◆ uploadBuffer()

virtual void openmsx::SoundDriver::uploadBuffer ( float *  buffer,
unsigned  len 
)
pure virtual

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