openMSX
|
#include <AudioInputConnector.hh>
Public Member Functions | |
AudioInputConnector (PluggingController &pluggingController, std::string name) | |
AudioInputDevice & | getPluggedAudioDev () const |
std::string_view | getDescription () const override |
Get a description for this connector. | |
std::string_view | getClass () const override |
A Connector belong to a certain class. | |
int16_t | readSample (EmuTime::param time) const |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Public Member Functions inherited from openmsx::Connector | |
Connector (const Connector &)=delete | |
Connector (Connector &&)=delete | |
Connector & | operator= (const Connector &)=delete |
Connector & | operator= (Connector &&)=delete |
const std::string & | getName () const |
Name that identifies this connector. | |
virtual void | plug (Pluggable &device, EmuTime::param time) |
This plugs a Pluggable in this Connector. | |
virtual void | unplug (EmuTime::param time) |
This unplugs the currently inserted Pluggable from this Connector. | |
Pluggable & | getPlugged () const |
Returns the Pluggable currently plugged in. | |
PluggingController & | getPluggingController () const |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
Additional Inherited Members | |
Protected Member Functions inherited from openmsx::Connector | |
Connector (PluggingController &pluggingController, std::string name, std::unique_ptr< Pluggable > dummy) | |
Creates a new Connector. | |
~Connector () | |
Definition at line 11 of file AudioInputConnector.hh.
openmsx::AudioInputConnector::AudioInputConnector | ( | PluggingController & | pluggingController, |
std::string | name | ||
) |
Definition at line 10 of file AudioInputConnector.cc.
|
overridevirtual |
A Connector belong to a certain class.
Only Pluggables of this class can be plugged in this Connector.
Implements openmsx::Connector.
Definition at line 22 of file AudioInputConnector.cc.
|
overridevirtual |
Get a description for this connector.
Implements openmsx::Connector.
Definition at line 17 of file AudioInputConnector.cc.
AudioInputDevice & openmsx::AudioInputConnector::getPluggedAudioDev | ( | ) | const |
Definition at line 32 of file AudioInputConnector.cc.
References openmsx::Connector::getPlugged().
Referenced by readSample().
int16_t openmsx::AudioInputConnector::readSample | ( | EmuTime::param | time | ) | const |
Definition at line 27 of file AudioInputConnector.cc.
References getPluggedAudioDev(), and openmsx::AudioInputDevice::readSample().
void openmsx::AudioInputConnector::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 38 of file AudioInputConnector.cc.