Skip to content

Commit 022c80b

Browse files
committed
Updated getSampleRate variable
1 parent 1ea3b55 commit 022c80b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Source/Plugins/NetworkEvents/NetworkEvents.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ void NetworkEvents::restartConnection()
8585

8686
void NetworkEvents::createEventChannels()
8787
{
88-
juce::int64 timestamp = CoreServices::getGlobalSampleRate();
89-
EventChannel* chan = new EventChannel(EventChannel::TEXT, 1, MAX_MESSAGE_LENGTH, timestamp, this);
88+
float sampleRate = CoreServices::getGlobalSampleRate();
89+
EventChannel* chan = new EventChannel(EventChannel::TEXT, 1, MAX_MESSAGE_LENGTH, sampleRate, this);
9090
chan->setName("Network messages");
9191
chan->setDescription("Messages received through the network events module");
9292
chan->setIdentifier("external.network.rawData");
@@ -95,7 +95,7 @@ void NetworkEvents::createEventChannels()
9595
eventChannelArray.add(chan);
9696
messageChannel = chan;
9797

98-
EventChannel* TTLchan = new EventChannel(EventChannel::TTL, 8, 1, timestamp, this);
98+
EventChannel* TTLchan = new EventChannel(EventChannel::TTL, 8, 1, sampleRate, this);
9999
TTLchan->setName("Network Events output");
100100
TTLchan->setDescription("Triggers whenever \"TTL\" is received on the port.");
101101
TTLchan->setIdentifier("external.network.ttl");

0 commit comments

Comments
 (0)