Skip to content
Snippets Groups Projects
Commit cbfd41a8 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Make NetworkEvents grab timestamps from MessageCenter

parent b53c64c3
No related branches found
No related tags found
No related merge requests found
......@@ -170,6 +170,11 @@ void MessageCenterEditor::resized()
sendMessageButton->setBounds(getWidth()-50, 5, 45, getHeight()-10);
}
int64 MessageCenterEditor::getTimestamp()
{
return messageCenter->getTimestamp();
}
void MessageCenterEditor::actionListenerCallback(const String& message)
{
......
......@@ -73,6 +73,8 @@ public:
void mouseDown(const MouseEvent& event);
int64 getTimestamp();
private:
void buttonClicked(Button* button);
......
......@@ -25,6 +25,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "NetworkEvents.h"
#include "../Editors/NetworkEventsEditor.h"
#include "../../AccessClass.h"
#include "../MessageCenter/MessageCenterEditor.h"
const int MAX_MESSAGE_LENGTH = 64000;
......@@ -399,7 +401,7 @@ void NetworkEvents::process(AudioSampleBuffer& buffer,
//std::cout << "NETWORK NODE" << std::endl;
//printf("Entering NetworkEvents::process\n");
setTimestamp(events,getMessageCenter()->getTimestamp());
checkForEvents(events);
//simulateDesignAndTrials(events);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment