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.
 
virtual void unmute ()=0
 Unmute the sound system.
 
virtual unsigned getFrequency () const =0
 Returns the actual sample frequency.
 
virtual unsigned getSamples () const =0
 Get the number of samples that should be created 'per fragment'.
 
virtual void uploadBuffer (std::span< const StereoFloat > buffer)=0
 

Protected Member Functions

 SoundDriver ()=default
 

Detailed Description

Definition at line 9 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::NullSoundDriver, and openmsx::SDLSoundDriver.

◆ 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::NullSoundDriver, and openmsx::SDLSoundDriver.

◆ mute()

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

Mute the sound system.

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

◆ unmute()

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

Unmute the sound system.

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

◆ uploadBuffer()

virtual void openmsx::SoundDriver::uploadBuffer ( std::span< const StereoFloat buffer)
pure virtual

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