openMSX
|
#include <WavAudioInput.hh>
Public Member Functions | |
WavAudioInput (CommandController &commandController) | |
~WavAudioInput () override | |
std::string_view | getName () const override |
Name used to identify this pluggable. More... | |
std::string_view | getDescription () const override |
Description for this pluggable. More... | |
void | plugHelper (Connector &connector, EmuTime::param time) override |
void | unplugHelper (EmuTime::param time) override |
int16_t | readSample (EmuTime::param time) override |
Read wave data. More... | |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
![]() | |
virtual int16_t | readSample (EmuTime::param time)=0 |
Read wave data. More... | |
std::string_view | getClass () const final |
A pluggable belongs to a certain class. More... | |
![]() | |
virtual | ~Pluggable ()=default |
virtual std::string_view | getName () const |
Name used to identify this pluggable. More... | |
virtual std::string_view | getClass () const =0 |
A pluggable belongs to a certain class. More... | |
virtual std::string_view | getDescription () const =0 |
Description for this pluggable. More... | |
void | plug (Connector &connector, EmuTime::param time) |
This method is called when this pluggable is inserted in a connector. More... | |
void | unplug (EmuTime::param time) |
This method is called when this pluggable is removed from a connector. More... | |
Connector * | getConnector () const |
Get the connector this Pluggable is plugged into. More... | |
bool | isPluggedIn () const |
Returns true if this pluggable is currently plugged into a connector. More... | |
Additional Inherited Members | |
![]() | |
Pluggable () | |
virtual void | plugHelper (Connector &newConnector, EmuTime::param time)=0 |
virtual void | unplugHelper (EmuTime::param time)=0 |
void | setConnector (Connector *conn) |
Definition at line 14 of file WavAudioInput.hh.
|
explicit |
Definition at line 10 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 Math::e, and 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.