aboutsummaryrefslogtreecommitdiff
path: root/src/opus_decoder.c
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2012-07-11 02:33:55 -0400
committerGregory Maxwell <greg@xiph.org>2012-07-11 02:33:55 -0400
commit03105f5b70f7597f36f4644f36a921317b859082 (patch)
tree65cfeadfc8f52f7a82192c89fb3de289f1d177f0 /src/opus_decoder.c
parent9881484dbde25707b93d988cff6316d2f375727a (diff)
downloadlibopus-03105f5b70f7597f36f4644f36a921317b859082.tar.gz
Make OPUS_SET_GAIN survive decode reset.
This is the less-surprising behavior and will hopefully result in fewer corner case bugs (e.g. losing gain after seeking). This commit also updates the documentation.
Diffstat (limited to 'src/opus_decoder.c')
-rw-r--r--src/opus_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opus_decoder.c b/src/opus_decoder.c
index 2ce4c95a..58f44ac7 100644
--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -53,6 +53,7 @@ struct OpusDecoder {
int channels;
opus_int32 Fs; /** Sampling rate (at the API level) */
silk_DecControlStruct DecControl;
+ int decode_gain;
/* Everything beyond this point gets cleared on a reset */
#define OPUS_DECODER_RESET_START stream_channels
@@ -63,7 +64,6 @@ struct OpusDecoder {
int prev_mode;
int frame_size;
int prev_redundancy;
- int decode_gain;
opus_uint32 rangeFinal;
};