From 968cfd27e659b42a0ca2b3c15265c8999086b45a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 25 Mar 2020 15:41:19 +0100 Subject: Rename ZMQ_ENCODER_XYZ constants --- src/Outputs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Outputs.h') 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; vec_u8 m_framebuf; }; -- cgit v1.2.3