openMSX
Public Member Functions | List of all members
openmsx::WavAudioInput Class Referencefinal

#include <WavAudioInput.hh>

Inheritance diagram for openmsx::WavAudioInput:
Inheritance graph
[legend]
Collaboration diagram for openmsx::WavAudioInput:
Collaboration graph
[legend]

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.
 
ConnectorgetConnector () 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)
 

Detailed Description

Definition at line 14 of file WavAudioInput.hh.

Constructor & Destructor Documentation

◆ WavAudioInput()

openmsx::WavAudioInput::WavAudioInput ( CommandController commandController)
explicit

Definition at line 11 of file WavAudioInput.cc.

References openmsx::Subject< T >::attach().

◆ ~WavAudioInput()

openmsx::WavAudioInput::~WavAudioInput ( )
override

Definition at line 20 of file WavAudioInput.cc.

References openmsx::Subject< T >::detach().

Member Function Documentation

◆ getDescription()

std::string_view openmsx::WavAudioInput::getDescription ( ) const
overridevirtual

Description for this pluggable.

Implements openmsx::Pluggable.

Definition at line 36 of file WavAudioInput.cc.

◆ getName()

std::string_view openmsx::WavAudioInput::getName ( ) const
overridevirtual

Name used to identify this pluggable.

Reimplemented from openmsx::Pluggable.

Definition at line 31 of file WavAudioInput.cc.

◆ plugHelper()

void openmsx::WavAudioInput::plugHelper ( Connector connector,
EmuTime::param  time 
)
overridevirtual

Implements openmsx::Pluggable.

Definition at line 42 of file WavAudioInput.cc.

References openmsx::WavData::getSize().

◆ readSample()

int16_t openmsx::WavAudioInput::readSample ( EmuTime::param  time)
overridevirtual

◆ serialize()

template<typename Archive >
void openmsx::WavAudioInput::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 83 of file WavAudioInput.cc.

◆ unplugHelper()

void openmsx::WavAudioInput::unplugHelper ( EmuTime::param  time)
overridevirtual

Implements openmsx::Pluggable.

Definition at line 54 of file WavAudioInput.cc.


The documentation for this class was generated from the following files: