Classempathy::moonlight::MoonLight
moonlight
Bases
Constructors
Member Functions

Classempathy::moonlight::MoonLight

Note: this is just an implementation for playing audio. It DOES NOT play any audio sound. This is to ensure that audio can be played in an platform-independent mode. All platform dependent codes are written by creating flavors of the base implementations.

For playing audio,you must override <playKeyboard()> or <play()>, whichever function you like. After overriding this implementation, make sure to add to the empathy::Empathy instance. by calling empathyApp->setMoonLight(moonLightExtendedInstance);

Bases

radio::Subscriber

The class to be overridden to emit/receive events.

Constructors

MoonLight ( )

Default constructor

Member Functions

  • virtual
void
init ( )

onInit()

  • override
void
onReceiveEvent ( radio::Event & event )

Called when an event is received for this subscriber.

event
  • virtual
void
terminate ( )

onTerminate()

  • protected
void
play ( std::__cxx11::string id )

Play a certain tone. Repeat=false;

id
  • protected
  • virtual
void
play ( std::__cxx11::string id,
bool repeat )

Play a certain tone.

id
repeat
  • protected
  • virtual
void
playKeyboard ( BasicNote note )

Notation should be like 1As or 2A or 3E and not 3A#

note