10 "Play samples via your printer port.";
30 dac->writeDAC(data, time);
33void PrinterPortSimpl::createDAC()
37 auto* result = doc.allocateElement(
"simpl");
38 result->setFirstChild(doc.allocateElement(
"sound"))
39 ->setFirstChild(doc.allocateElement(
"volume",
"12000"));
42 dac.emplace(
"simpl", DESCRIPTION, DeviceConfig(hwConf, *xml));
65template<
typename Archive>
69 if constexpr (Archive::IS_LOADER) {
72 ar.serialize(
"dac", *dac);
Represents something you can plug devices into.
bool isPluggedIn() const
Returns true if this pluggable is currently plugged into a connector.
PrinterPortSimpl(const HardwareConfig &hwConf)
void unplugHelper(EmuTime::param time) override
bool getStatus(EmuTime::param time) override
Returns the STATUS signal: false = low = ready, true = high = not ready.
void serialize(Archive &ar, unsigned version)
void plugHelper(Connector &connector, EmuTime::param time) override
std::string_view getDescription() const override
Description for this pluggable.
void setStrobe(bool strobe, EmuTime::param time) override
Sets the strobe signal: false = low, true = high.
void writeData(uint8_t data, EmuTime::param time) override
Sets the data signals.
std::string_view getName() const override
Name used to identify this pluggable.
static XMLDocument & getStaticDocument()
This file implemented 3 utility functions:
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)