aboutsummaryrefslogtreecommitdiffstats
path: root/lib/osmosdr/osmosdr_src_c.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/osmosdr/osmosdr_src_c.cc')
-rw-r--r--lib/osmosdr/osmosdr_src_c.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/osmosdr/osmosdr_src_c.cc b/lib/osmosdr/osmosdr_src_c.cc
index 54393b9..c9be8f4 100644
--- a/lib/osmosdr/osmosdr_src_c.cc
+++ b/lib/osmosdr/osmosdr_src_c.cc
@@ -44,7 +44,7 @@
using namespace boost::assign;
#define BUF_LEN (16 * 32 * 512) /* must be multiple of 512 */
-#define BUF_NUM 32
+#define BUF_NUM 15
#define BUF_SKIP 1 // buffers to skip due to garbage
#define BYTES_PER_SAMPLE 4 // osmosdr device delivers 16 bit signed IQ data
@@ -203,7 +203,7 @@ void osmosdr_src_c::_osmosdr_wait(osmosdr_src_c *obj)
void osmosdr_src_c::osmosdr_wait()
{
- int ret = osmosdr_read_async( _dev, _osmosdr_callback, (void *)this, 0, _buf_len );
+ int ret = osmosdr_read_async( _dev, _osmosdr_callback, (void *)this, _buf_num, _buf_len );
_running = false;