summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-03-25 15:40:54 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-03-25 15:40:54 +0100
commitc6a73c219dbfdfe639372d9922f4eb512f06fa2f (patch)
tree32385e32619e0d22c7f80ad6d0b90d9d58d55368
parent8df764af13e71062f24f60c08a1dc3e3c0d2e371 (diff)
downloadODR-AudioEnc-c6a73c219dbfdfe639372d9922f4eb512f06fa2f.tar.gz
ODR-AudioEnc-c6a73c219dbfdfe639372d9922f4eb512f06fa2f.tar.bz2
ODR-AudioEnc-c6a73c219dbfdfe639372d9922f4eb512f06fa2f.zip
Rename ZMQ_ENCODER_XYZ constants
-rw-r--r--src/Outputs.cpp4
-rw-r--r--src/Outputs.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Outputs.cpp b/src/Outputs.cpp
index 01156ce..27ab365 100644
--- a/src/Outputs.cpp
+++ b/src/Outputs.cpp
@@ -108,10 +108,10 @@ bool ZMQ::write_frame(const uint8_t *buf, size_t len)
try {
switch (m_encoder) {
case encoder_selection_t::fdk_dabplus:
- zmq_frame_header->encoder = ZMQ_ENCODER_FDK;
+ zmq_frame_header->encoder = ZMQ_ENCODER_AACPLUS;
break;
case encoder_selection_t::toolame_dab:
- zmq_frame_header->encoder = ZMQ_ENCODER_TOOLAME;
+ zmq_frame_header->encoder = ZMQ_ENCODER_MPEG_L2;
break;
}
diff --git a/src/Outputs.h b/src/Outputs.h
index 3a302b1..1211841 100644
--- a/src/Outputs.h
+++ b/src/Outputs.h
@@ -91,8 +91,8 @@ struct zmq_frame_header_t
/* Data follows this header */
} __attribute__ ((packed));
-#define ZMQ_ENCODER_FDK 1
-#define ZMQ_ENCODER_TOOLAME 2
+#define ZMQ_ENCODER_AACPLUS 1
+#define ZMQ_ENCODER_MPEG_L2 2
#define ZMQ_HEADER_SIZE sizeof(struct zmq_frame_header_t)