aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtl_test.c
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2014-02-10 23:57:19 +0100
committerSteve Markgraf <steve@steve-m.de>2014-02-10 23:57:19 +0100
commit89f73b183f2dac9c0dd75beca4cf2f77f20c4a36 (patch)
treee523cf4e70cc1cc2637535caf79ccfc9afeb27bd /src/rtl_test.c
parent5b0137abaf179e6ca4e90a6ea987a61823a09bb1 (diff)
lib: change default number of transfers to 15
So far we had 32 * 256KB which was a bit overkill, 15 are more than enough. 15 was chosen instead of 16 because at least on Linux there seems to be a system-wide limit of 63 transfers (when they are 256KB large), so 4 dongles can be used on a single machine without lowering the default transfer number. Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src/rtl_test.c')
-rw-r--r--src/rtl_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rtl_test.c b/src/rtl_test.c
index 8bf567e..9a6cfda 100644
--- a/src/rtl_test.c
+++ b/src/rtl_test.c
@@ -44,7 +44,6 @@
#include "convenience/convenience.h"
#define DEFAULT_SAMPLE_RATE 2048000
-#define DEFAULT_ASYNC_BUF_NUMBER 32
#define DEFAULT_BUF_LENGTH (16 * 16384)
#define MINIMAL_BUF_LENGTH 512
#define MAXIMAL_BUF_LENGTH (256 * 16384)
@@ -406,7 +405,7 @@ int main(int argc, char **argv)
} else {
fprintf(stderr, "Reading samples in async mode...\n");
r = rtlsdr_read_async(dev, rtlsdr_callback, NULL,
- DEFAULT_ASYNC_BUF_NUMBER, out_block_size);
+ 0, out_block_size);
}
if (do_exit) {