openMSX
|
#include <Mixer.hh>
Public Types | |
enum class | SoundDriverType { NONE , SDL } |
Public Member Functions | |
Mixer (Reactor &reactor, CommandController &commandController) | |
~Mixer () | |
void | registerMixer (MSXMixer &mixer) |
Register per-machine mixer. | |
void | unregisterMixer (MSXMixer &mixer) |
Unregister per-machine mixer. | |
void | mute () |
This methods (un)mute the sound. | |
void | unmute () |
void | uploadBuffer (MSXMixer &msxMixer, std::span< const StereoFloat > buffer) |
Upload new sample data. | |
IntegerSetting & | getMasterVolume () |
BooleanSetting & | getMuteSetting () |
|
strong |
openmsx::Mixer::Mixer | ( | Reactor & | reactor, |
CommandController & | commandController | ||
) |
Definition at line 34 of file Mixer.cc.
References openmsx::Subject< T >::attach(), and openmsx::BooleanSetting::getBoolean().
openmsx::Mixer::~Mixer | ( | ) |
Definition at line 65 of file Mixer.cc.
References openmsx::Subject< T >::detach().
|
inline |
|
inline |
void openmsx::Mixer::mute | ( | ) |
This methods (un)mute the sound.
These methods may be called multiple times, as long as you never call unmute() more than mute()
Definition at line 115 of file Mixer.cc.
Referenced by openmsx::Reactor::block().
void openmsx::Mixer::registerMixer | ( | MSXMixer & | mixer | ) |
Register per-machine mixer.
Definition at line 101 of file Mixer.cc.
References contains().
Referenced by openmsx::MSXMixer::unmute().
void openmsx::Mixer::unmute | ( | ) |
Definition at line 122 of file Mixer.cc.
Referenced by openmsx::Reactor::unblock().
void openmsx::Mixer::unregisterMixer | ( | MSXMixer & | mixer | ) |
Unregister per-machine mixer.
Definition at line 108 of file Mixer.cc.
References move_pop_back(), and rfind_unguarded().
Referenced by openmsx::MSXMixer::mute().
void openmsx::Mixer::uploadBuffer | ( | MSXMixer & | msxMixer, |
std::span< const StereoFloat > | buffer | ||
) |
Upload new sample data.
Definition at line 148 of file Mixer.cc.
Referenced by openmsx::MSXMixer::updateStream().