openMSX
|
#include <WavAudioInput.hh>
Public Member Functions | |
WavAudioInput (CommandController &commandController) | |
~WavAudioInput () override | |
std::string_view | getName () const override |
Name used to identify this pluggable. | |
std::string_view | getDescription () const override |
Description for this pluggable. | |
void | plugHelper (Connector &connector, EmuTime::param time) override |
void | unplugHelper (EmuTime::param time) override |
int16_t | readSample (EmuTime::param time) override |
Read wave data. | |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Public Member Functions inherited from openmsx::AudioInputDevice | |
std::string_view | getClass () const final |
A pluggable belongs to a certain class. | |
Public Member Functions inherited from openmsx::Pluggable | |
virtual | ~Pluggable ()=default |
void | plug (Connector &connector, EmuTime::param time) |
This method is called when this pluggable is inserted in a connector. | |
void | unplug (EmuTime::param time) |
This method is called when this pluggable is removed from a connector. | |
Connector * | getConnector () const |
Get the connector this Pluggable is plugged into. | |
bool | isPluggedIn () const |
Returns true if this pluggable is currently plugged into a connector. | |
Additional Inherited Members | |
Protected Member Functions inherited from openmsx::Pluggable | |
Pluggable () | |
void | setConnector (Connector *conn) |
Definition at line 14 of file WavAudioInput.hh.
|
explicit |
Definition at line 11 of file WavAudioInput.cc.
References openmsx::Subject< T >::attach().
|
override |
Definition at line 20 of file WavAudioInput.cc.
References openmsx::Subject< T >::detach().
|
overridevirtual |
Description for this pluggable.
Implements openmsx::Pluggable.
Definition at line 36 of file WavAudioInput.cc.
|
overridevirtual |
Name used to identify this pluggable.
Reimplemented from openmsx::Pluggable.
Definition at line 31 of file WavAudioInput.cc.
|
overridevirtual |
Implements openmsx::Pluggable.
Definition at line 42 of file WavAudioInput.cc.
References openmsx::WavData::getSize().
|
overridevirtual |
Read wave data.
Implements openmsx::AudioInputDevice.
Definition at line 73 of file WavAudioInput.cc.
References openmsx::WavData::getFreq(), openmsx::WavData::getSample(), and openmsx::WavData::getSize().
void openmsx::WavAudioInput::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 83 of file WavAudioInput.cc.
|
overridevirtual |
Implements openmsx::Pluggable.
Definition at line 54 of file WavAudioInput.cc.