summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-03-09 18:56:52 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-03-09 18:56:52 +0100
commit7b59e9865f030c0d2dfd1cca0f303013654e2111 (patch)
tree670c9f7f36c4ce4d6ddfe851c70eebf38c76a8e2
parent161b139b62811cce3ec86bd86d32d165801ea123 (diff)
downloadODR-AudioEnc-7b59e9865f030c0d2dfd1cca0f303013654e2111.tar.gz
ODR-AudioEnc-7b59e9865f030c0d2dfd1cca0f303013654e2111.tar.bz2
ODR-AudioEnc-7b59e9865f030c0d2dfd1cca0f303013654e2111.zip
add nice PAD data debugging output
-rw-r--r--src/AlsaDabplus.cpp2
-rw-r--r--src/dabplus-enc-file-zmq.c2
2 files changed, 4 insertions, 0 deletions
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.