aboutsummaryrefslogtreecommitdiffstats
path: root/src/Outputs.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-03-25 15:41:19 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-03-25 15:41:19 +0100
commit968cfd27e659b42a0ca2b3c15265c8999086b45a (patch)
tree82f1cf8f9aaa0e2418ac11efc0a2244d86cef1f0 /src/Outputs.h
parente9e1b673a111366ad9071933f3469891a735243a (diff)
downloadODR-SourceCompanion-968cfd27e659b42a0ca2b3c15265c8999086b45a.tar.gz
ODR-SourceCompanion-968cfd27e659b42a0ca2b3c15265c8999086b45a.tar.bz2
ODR-SourceCompanion-968cfd27e659b42a0ca2b3c15265c8999086b45a.zip
Rename ZMQ_ENCODER_XYZ constants
Diffstat (limited to 'src/Outputs.h')
-rw-r--r--src/Outputs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Outputs.h b/src/Outputs.h
index 53ee2ec..a419925 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)
@@ -110,7 +110,7 @@ class ZMQ: public Base {
virtual ~ZMQ() override;
void connect(const char *uri, const char *keyfile);
- void set_encoder_type(encoder_selection_t& enc, int bitrate);
+ void set_encoder_type(codec_selection_t& enc, int bitrate);
virtual bool write_frame(const uint8_t *buf, size_t len) override;
@@ -120,7 +120,7 @@ class ZMQ: public Base {
int m_bitrate = 0;
char m_secretkey[CURVE_KEYLEN+1];
- encoder_selection_t m_encoder = encoder_selection_t::fdk_dabplus;
+ codec_selection_t m_encoder = codec_selection_t::dabplus;
using vec_u8 = std::vector<uint8_t>;
vec_u8 m_framebuf;
};