From 7b59e9865f030c0d2dfd1cca0f303013654e2111 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 9 Mar 2014 18:56:52 +0100 Subject: add nice PAD data debugging output --- src/AlsaDabplus.cpp | 2 ++ src/dabplus-enc-file-zmq.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/AlsaDabplus.cpp b/src/AlsaDabplus.cpp index f8e4f4b..c08c98d 100644 --- a/src/AlsaDabplus.cpp +++ b/src/AlsaDabplus.cpp @@ -402,6 +402,8 @@ int main(int argc, char *argv[]) { else if(ret >= 0) { // Otherwise, you're good to go and buffer should contain "count" bytes. in_buf.numBufs = 2; // Samples + Data; + if (ret > 0) + fprintf(stderr, "p"); } else { // Some other error occurred during read. diff --git a/src/dabplus-enc-file-zmq.c b/src/dabplus-enc-file-zmq.c index 9b6d684..cb83877 100644 --- a/src/dabplus-enc-file-zmq.c +++ b/src/dabplus-enc-file-zmq.c @@ -378,6 +378,8 @@ int main(int argc, char *argv[]) { else if(ret >= 0) { // Otherwise, you're good to go and buffer should contain "count" bytes. in_buf.numBufs = 2; // Samples + Data; + if (ret > 0) + fprintf(stderr, "p"); } else { // Some other error occurred during read. -- cgit v1.2.3