shithub: opus

Download patch

ref: fccfe856d904ae5c59c1f03c0dd02d779f2754af
parent: fd028ff8d6e2136712b78636cb1861a491d57908
author: Daniel Danzberger <dd@embedd.com>
date: Mon Oct 7 14:32:57 EDT 2024

Support OPUS_SET_COMPLEXITY() for multistream decoder

OPUS_SET_COMPLEXITY() is already implemented in the decoder
for controlling deep PLC since commit
8d43b185b2bb44841cb9b13e6dc1f4f30da0db87

This commit makes it also available for the mulitstream decoder.

Signed-off-by: Daniel Danzberger <dd@embedd.com>
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>

--- a/src/opus_multistream_decoder.c
+++ b/src/opus_multistream_decoder.c
@@ -444,6 +444,7 @@
        case OPUS_GET_GAIN_REQUEST:
        case OPUS_GET_LAST_PACKET_DURATION_REQUEST:
        case OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST:
+       case OPUS_GET_COMPLEXITY_REQUEST:
        {
           OpusDecoder *dec;
           /* For int32* GET params, just query the first stream */
@@ -518,6 +519,7 @@
        }
        break;
        case OPUS_SET_GAIN_REQUEST:
+       case OPUS_SET_COMPLEXITY_REQUEST:
        case OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST:
        {
           int s;
--