ref: 2039a8764c77a870d4b403282fb96c74f8775583
parent: 69628fb518ab78c3742948131c510a1a38371f96
author: Mark Harris <mark.hsj@gmail.com>
date: Sun Feb 4 11:03:52 EST 2018
opusenc: Set header gain when requested Used by FLAC input. Requires latest libopusenc from git.
--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -775,6 +775,7 @@
enc = ope_encoder_create_callbacks(&callbacks, &data, inopt.comments, rate, chan, chan>8?255:chan>2, NULL);
ope_encoder_ctl(enc, OPE_SET_MUXING_DELAY(max_ogg_delay));
ope_encoder_ctl(enc, OPE_SET_SERIALNO(serialno));
+ ope_encoder_ctl(enc, OPE_SET_HEADER_GAIN(inopt.gain));
ope_encoder_ctl(enc, OPE_SET_PACKET_CALLBACK(packet_callback, &data));
ope_encoder_ctl(enc, OPUS_SET_EXPERT_FRAME_DURATION(opus_frame_param));
ope_encoder_ctl(enc, OPE_SET_COMMENT_PADDING(comment_padding));