29#include "../lib/part.h"
31#define PART_BUZZER_Name "Buzzer"
35 std::string
GetAboutInfo(
void)
override {
return "L.C. Gamboa \n <lcgamboa@yahoo.com>"; };
36 cpart_Buzzer(
const unsigned x,
const unsigned y,
const char* name,
const char* type,
board* pboard_,
const int id_);
38 void DrawOutput(
const unsigned int index)
override;
42 void Stop(
void)
override;
47 unsigned short GetInputId(
char* name)
override;
52 void ChangeType(
unsigned char tp);
54 unsigned char input_pins[1];
59 unsigned int samplerate;
61 unsigned int buffersize;
62 unsigned int buffercount;
Board class.
Definition board.h:111
Definition output_Buzzer.h:33
void ReadPropertiesWindow(void) override
Called when properties window close.
Definition output_Buzzer.cc:198
void Process(void) override
Called every CPU step.
Definition output_Buzzer.cc:244
void Stop(void) override
Stop part simulation.
Definition output_Buzzer.cc:238
void DrawOutput(const unsigned int index) override
Called to draw every output.
Definition output_Buzzer.cc:96
void PreProcess(void) override
Called every start of CPU process.
Definition output_Buzzer.cc:222
void ReadPreferences(std::string value) override
Called whe configuration file load preferences.
Definition output_Buzzer.cc:166
void PostProcess(void) override
Called every end of CPU process.
Definition output_Buzzer.cc:290
std::string GetAboutInfo(void) override
Return the about information of part.
Definition output_Buzzer.h:35
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition output_Buzzer.cc:147
void RegisterRemoteControl(void) override
Register remote control variables.
Definition output_Buzzer.cc:172
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition output_Buzzer.cc:142
void ConfigurePropertiesWindow(void) override
Called to configure the properties window.
Definition output_Buzzer.cc:178
std::string WritePreferences(void) override
Called to save part preferences in configuration file.
Definition output_Buzzer.cc:159
PART class.
Definition part.h:49