openMSX
|
#include <SDLSoundDriver.hh>
Public Member Functions | |
SDLSoundDriver (const SDLSoundDriver &)=delete | |
SDLSoundDriver & | operator= (const SDLSoundDriver &)=delete |
SDLSoundDriver (Reactor &reactor, unsigned wantedFreq, unsigned samples) | |
~SDLSoundDriver () override | |
void | mute () override |
Mute the sound system. More... | |
void | unmute () override |
Unmute the sound system. More... | |
unsigned | getFrequency () const override |
Returns the actual sample frequency. More... | |
unsigned | getSamples () const override |
Get the number of samples that should be created 'per fragment'. More... | |
void | uploadBuffer (std::span< const StereoFloat > buffer) override |
![]() | |
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 (std::span< const StereoFloat > buffer)=0 |
Additional Inherited Members | |
![]() | |
SoundDriver ()=default | |
Definition at line 13 of file SDLSoundDriver.hh.
|
delete |
openmsx::SDLSoundDriver::SDLSoundDriver | ( | Reactor & | reactor, |
unsigned | wantedFreq, | ||
unsigned | samples | ||
) |
Definition at line 18 of file SDLSoundDriver.cc.
|
override |
Definition at line 45 of file SDLSoundDriver.cc.
|
overridevirtual |
Returns the actual sample frequency.
This might be different from the requested frequency ('frequency' setting).
Implements openmsx::SoundDriver.
Definition at line 75 of file SDLSoundDriver.cc.
|
overridevirtual |
Get the number of samples that should be created 'per fragment'.
This is not the same value as the 'samples setting'.
Implements openmsx::SoundDriver.
Definition at line 80 of file SDLSoundDriver.cc.
|
overridevirtual |
Mute the sound system.
Implements openmsx::SoundDriver.
Definition at line 58 of file SDLSoundDriver.cc.
|
delete |
|
overridevirtual |
Unmute the sound system.
Implements openmsx::SoundDriver.
Definition at line 66 of file SDLSoundDriver.cc.
|
overridevirtual |
Implements openmsx::SoundDriver.
Definition at line 135 of file SDLSoundDriver.cc.
References ranges::copy(), openmsx::Reactor::getGlobalSettings(), openmsx::Reactor::getMotherBoard(), openmsx::GlobalSettings::getThrottleManager(), openmsx::ThrottleManager::isThrottled(), and openmsx::Timer::sleep().