[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Losing data during long collects

From: Chris Stankevitz
Subject: Re: [Discuss-gnuradio] Losing data during long collects
Date: Thu, 05 Jun 2008 11:21:52 -0700
User-agent: Thunderbird (Windows/20070326)

Robert Fitzsimons wrote:
Just some comments on the code:

   int NumBytes = rx->read(

Your code doesn't do anyting if the read returns less then
n*sizeof(short) bytes.  Is that possible within the gnuradio code?

    pStream->write((char*)Buffer, n*sizeof(short));

Same here the write might not write all n*sizeof(short) bytes.


You're exactly right, I assume that all the bytes are read and written! Thank you so much I'll fix it right away.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]