shithub: opus

Download patch

ref: ea7c9869cd2ce21b441b9c3efa02658558b323d7
parent: e9b36c1e38691531063f215e820d24557e7f0923
author: Jean-Marc Valin <[email protected]>
date: Wed Oct 10 12:03:36 EDT 2012

Adds OPUS_{G,S}ET_FORCE_CHANNELS requests to multistream API

--- a/src/opus_multistream.c
+++ b/src/opus_multistream.c
@@ -483,6 +483,7 @@
    case OPUS_GET_LOOKAHEAD_REQUEST:
    case OPUS_GET_SAMPLE_RATE_REQUEST:
    case OPUS_GET_INBAND_FEC_REQUEST:
+   case OPUS_GET_FORCE_CHANNELS_REQUEST:
    {
       OpusEncoder *enc;
       /* For int32* GET params, just query the first stream */
@@ -522,6 +523,7 @@
    case OPUS_SET_PACKET_LOSS_PERC_REQUEST:
    case OPUS_SET_DTX_REQUEST:
    case OPUS_SET_FORCE_MODE_REQUEST:
+   case OPUS_SET_FORCE_CHANNELS_REQUEST:
    {
       int s;
       /* This works for int32 params */