Fork of, triyin to rewrite for mbed 5. WIP not yet finished but working. ----------------------- An Open Sound Control library for the mbed, created to be compatible with Recotana's OSCClass library (http://recotana.com) for the Arduino with Ethernet shield. It also uses parts of the OSC Transceiver(Sender/Receiver) code by xshige written by: Alvaro Cassinelli, October 2011 tweaked by: Toby Harris / *spark audio-visual, March 2012
Diff: OSCData.cpp
- Revision:
- 16:36d28d8e5491
- Parent:
- 10:936c3afce828
--- a/OSCData.cpp Mon Dec 10 16:51:59 2018 +0100 +++ b/OSCData.cpp Fri Dec 14 19:36:56 2018 +0100 @@ -2,7 +2,7 @@ #include "OSCData.h" - +osctime_t zerotime = {0,0}; /*============================================================================= CONSTRUCTORS @@ -166,6 +166,15 @@ } } +osctime_t OSCData::getTime(){ + if (type == 't'){ + return data.time; + } else { + + return zerotime; + } +} + float OSCData::getFloat(){ if (type == 'f'){ return data.f;