summaryrefslogtreecommitdiffstats
path: root/src/utils.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-05-20 08:49:29 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-05-20 08:49:29 +0200
commit7102f830e01c3d4d695c0d36608cb09064e4aedc (patch)
tree5b0bbb2a9fff3af44c4b0a7c88b96edfd3675a39 /src/utils.h
parent3b68a6188b4983816833dc9a20be4f6b74f4c03f (diff)
downloadODR-AudioEnc-7102f830e01c3d4d695c0d36608cb09064e4aedc.tar.gz
ODR-AudioEnc-7102f830e01c3d4d695c0d36608cb09064e4aedc.tar.bz2
ODR-AudioEnc-7102f830e01c3d4d695c0d36608cb09064e4aedc.zip
Move outputs to a separate file
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h35
1 files changed, 1 insertions, 34 deletions
diff --git a/src/utils.h b/src/utils.h
index 83b3e4d..2cb06c3 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -1,5 +1,4 @@
-#ifndef UTILS_H_
-#define UTILS_H_
+#pragma once
#include <math.h>
#include <stdint.h>
@@ -17,37 +16,5 @@
*/
const char* level(int channel, int peak);
-/*! This defines the on-wire representation of a ZMQ message header.
- * It must be compatible with the definition in ODR-DabMux.
- *
- * The data follows right after this header */
-struct zmq_frame_header_t
-{
- uint16_t version; // we support version=1 now
- uint16_t encoder; // see ZMQ_ENCODER_XYZ
-
- /* length of the 'data' field */
- uint32_t datasize;
-
- /* Audio level, peak, linear PCM */
- int16_t audiolevel_left;
- int16_t audiolevel_right;
-
- /* Data follows this header */
-} __attribute__ ((packed));
-
-#define ZMQ_ENCODER_FDK 1
-#define ZMQ_ENCODER_TOOLAME 2
-
-#define ZMQ_HEADER_SIZE sizeof(struct zmq_frame_header_t)
-
-/* The expected frame size incl data of the given frame */
-#define ZMQ_FRAME_SIZE(f) (sizeof(struct zmq_frame_header_t) + f->datasize)
-
-#define ZMQ_FRAME_DATA(f) ( ((uint8_t*)f)+sizeof(struct zmq_frame_header_t) )
-
-
size_t strlen_utf8(const char *s);
-#endif
-