Skip to content

Commit

Permalink
Do not send data when number of samples is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
anjaldoshi committed Jun 29, 2022
1 parent 812bdd2 commit dd92861
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/ZmqInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,9 @@ void ZmqInterface::process(AudioBuffer<float>& buffer)
int64 sampleNum = getFirstSampleNumberForBlock(stream->getStreamId()) ;
int numSamples = getNumSamplesInBlock(selectedStream);

if(numSamples == 0)
continue;

for(auto chan : selectedChannels)
{
int globalChanIndex = stream->getContinuousChannels().getUnchecked(chan)->getGlobalIndex();
Expand Down

0 comments on commit dd92861

Please sign in to comment.