ref: ab0b5f5ff388f70a81b4497beef6d7562ebc4068
parent: c7921088292675c5f6691193a32fff68f36bf296
author: Vincent Penquerc'h <[email protected]>
date: Wed Nov 23 10:17:30 EST 2011
Make input mapping parameter const in multistream API
--- a/include/opus_multistream.h
+++ b/include/opus_multistream.h
@@ -55,7 +55,7 @@
int channels, /**< Number of channels in the input signal */
int streams, /**< Total number of streams to encode from the input */
int coupled_streams, /**< Number of coupled (stereo) streams to encode */
- unsigned char *mapping, /**< Encoded mapping between channels and streams */
+ const unsigned char *mapping, /**< Encoded mapping between channels and streams */
int application, /**< Coding mode (OPUS_APPLICATION_VOIP/OPUS_APPLICATION_AUDIO) */
int *error /**< Error code */
);
@@ -67,7 +67,7 @@
int channels, /**< Number of channels in the input signal */
int streams, /**< Total number of streams to encode from the input */
int coupled_streams, /**< Number of coupled (stereo) streams to encode */
- unsigned char *mapping, /**< Encoded mapping between channels and streams */
+ const unsigned char *mapping, /**< Encoded mapping between channels and streams */
int application /**< Coding mode (OPUS_APPLICATION_VOIP/OPUS_APPLICATION_AUDIO) */
);
@@ -111,7 +111,7 @@
int channels, /**< Number of channels to decode */
int streams, /**< Total number of coded streams in the multistream */
int coupled_streams, /**< Number of coupled (stereo) streams in the multistream */
- unsigned char *mapping, /**< Stream to channel mapping table */
+ const unsigned char *mapping, /**< Stream to channel mapping table */
int *error /**< Error code */
);
@@ -122,7 +122,7 @@
int channels, /**< Number of channels in the input signal */
int streams, /**< Total number of coded streams */
int coupled_streams, /**< Number of coupled (stereo) streams */
- unsigned char *mapping /**< Stream to channel mapping table */
+ const unsigned char *mapping /**< Stream to channel mapping table */
);
/** Returns the number of samples decoded or a negative error code */
--- a/src/opus_multistream.c
+++ b/src/opus_multistream.c
@@ -154,7 +154,7 @@
int channels,
int streams,
int coupled_streams,
- unsigned char *mapping,
+ const unsigned char *mapping,
int application
)
{
@@ -193,7 +193,7 @@
int channels,
int streams,
int coupled_streams,
- unsigned char *mapping,
+ const unsigned char *mapping,
int application,
int *error
)
@@ -526,7 +526,7 @@
int channels,
int streams,
int coupled_streams,
- unsigned char *mapping
+ const unsigned char *mapping
)
{
int coupled_size;
@@ -568,7 +568,7 @@
int channels,
int streams,
int coupled_streams,
- unsigned char *mapping,
+ const unsigned char *mapping,
int *error
)
{