1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/rbcodec/codecs/opus.c b/lib/rbcodec/codecs/opus.c
index 1e182d2..a8d6073 100644
--- a/lib/rbcodec/codecs/opus.c
+++ b/lib/rbcodec/codecs/opus.c
@@ -174,6 +174,8 @@ enum codec_status codec_run(void)
                     opus_decoder_init(st, sample_rate, header.channels);
                     LOGF("Decoder inited");
 
+                    opus_decoder_ctl(st, OPUS_SET_GAIN(header.gain));
+
                     ci->configure(DSP_SET_FREQUENCY, sample_rate);
                     ci->configure(DSP_SET_SAMPLE_DEPTH, 16);
                     ci->configure(DSP_SET_STEREO_MODE, (header.channels == 2) ?