openMSX
|
#include <SDLSoundDriver.hh>
Public Member Functions | |
SDLSoundDriver (Reactor &reactor, unsigned wantedFreq, unsigned samples) | |
SDLSoundDriver (const SDLSoundDriver &)=delete | |
SDLSoundDriver (SDLSoundDriver &&)=delete | |
SDLSoundDriver & | operator= (const SDLSoundDriver &)=delete |
SDLSoundDriver & | operator= (SDLSoundDriver &&)=delete |
~SDLSoundDriver () override | |
void | mute () override |
Mute the sound system. | |
void | unmute () override |
Unmute the sound system. | |
unsigned | getFrequency () const override |
Returns the actual sample frequency. | |
unsigned | getSamples () const override |
Get the number of samples that should be created 'per fragment'. | |
void | uploadBuffer (std::span< const StereoFloat > buffer) override |
Public Member Functions inherited from openmsx::SoundDriver | |
virtual | ~SoundDriver ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from openmsx::SoundDriver | |
SoundDriver ()=default | |
Definition at line 16 of file SDLSoundDriver.hh.
openmsx::SDLSoundDriver::SDLSoundDriver | ( | Reactor & | reactor, |
unsigned | wantedFreq, | ||
unsigned | samples | ||
) |
Definition at line 21 of file SDLSoundDriver.cc.
|
delete |
|
delete |
|
override |
Definition at line 47 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 77 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 82 of file SDLSoundDriver.cc.
|
overridevirtual |
Mute the sound system.
Implements openmsx::SoundDriver.
Definition at line 60 of file SDLSoundDriver.cc.
|
delete |
|
delete |
|
overridevirtual |
Unmute the sound system.
Implements openmsx::SoundDriver.
Definition at line 68 of file SDLSoundDriver.cc.
|
overridevirtual |
Implements openmsx::SoundDriver.
Definition at line 137 of file SDLSoundDriver.cc.
References ranges::copy(), openmsx::Reactor::getGlobalSettings(), openmsx::Reactor::getMotherBoard(), openmsx::GlobalSettings::getThrottleManager(), openmsx::ThrottleManager::isThrottled(), and openmsx::Timer::sleep().