Skip to content

Commit 3add9e7

Browse files
committed
Fix Tx packets padding and Tx status not being reported if data transfer gets stuck.
1 parent 8d58152 commit 3add9e7

5 files changed

Lines changed: 136 additions & 204 deletions

File tree

src/streaming/StreamPacket.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,11 @@ class PacketData
147147
@tparam T The type of samples the packet is holding.
148148
@param iScale The multiplier with which to multiply all the I values.
149149
@param qScale The multiplier with which to multiply all the Q values.
150-
@param channelCount The amount of channels to multiply the values for.
151150
*/
152-
template<class T> void Scale(float iScale, float qScale, int channelCount)
151+
template<class T> void Scale(float iScale, float qScale)
153152
{
154-
assert(channelCount <= mChannelCount);
155-
156153
int samplesCount = size();
157-
for (int c = 0; c < channelCount; ++c)
154+
for (int c = 0; c < mChannelCount; ++c)
158155
{
159156
T* samples = reinterpret_cast<T*>(head[c]);
160157
for (int i = 0; i < samplesCount; ++i)

0 commit comments

Comments
 (0)