shithub: opus

Download patch

ref: d9438da52c60002ed7ffd275fc05f751044f9b96
parent: 612b88b17b7b58a97f20ccffd25b948177bb80e9
author: Jean-Marc Valin <[email protected]>
date: Wed Sep 7 10:47:48 EDT 2011

Making the sampling rate an int32 in the multi-stream API

--- a/src/opus_multistream.c
+++ b/src/opus_multistream.c
@@ -149,7 +149,7 @@
 
 int opus_multistream_encoder_init(
       OpusMSEncoder *st,            /* Encoder state */
-      int Fs,                     /* Sampling rate of input signal (Hz) */
+      opus_int32 Fs,                     /* Sampling rate of input signal (Hz) */
       int channels,               /* Number of channels (1/2) in input signal */
       int streams,
       int coupled_streams,
@@ -188,7 +188,7 @@
 }
 
 OpusMSEncoder *opus_multistream_encoder_create(
-      int Fs,                     /* Sampling rate of input signal (Hz) */
+      opus_int32 Fs,                     /* Sampling rate of input signal (Hz) */
       int channels,               /* Number of channels (1/2) in input signal */
       int streams,
       int coupled_streams,
@@ -458,7 +458,7 @@
 
 int opus_multistream_decoder_init(
       OpusMSDecoder *st,            /* Encoder state */
-      int Fs,                     /* Sampling rate of input signal (Hz) */
+      opus_int32 Fs,                     /* Sampling rate of input signal (Hz) */
       int channels,               /* Number of channels (1/2) in input signal */
       int streams,
       int coupled_streams,
@@ -498,7 +498,7 @@
 
 
 OpusMSDecoder *opus_multistream_decoder_create(
-      int Fs,                     /* Sampling rate of input signal (Hz) */
+      opus_int32 Fs,                     /* Sampling rate of input signal (Hz) */
       int channels,               /* Number of channels (1/2) in input signal */
       int streams,
       int coupled_streams,
--- a/src/opus_multistream.h
+++ b/src/opus_multistream.h
@@ -39,7 +39,7 @@
 typedef struct OpusMSDecoder OpusMSDecoder;
 
 OPUS_EXPORT OpusMSEncoder *opus_multistream_encoder_create(
-      int Fs,                     /**< Sampling rate of input signal (Hz) */
+      opus_int32 Fs,                     /**< Sampling rate of input signal (Hz) */
       int channels,               /**< Number of channels (1/2) in input signal */
       int streams,
       int coupled_streams,
@@ -50,7 +50,7 @@
 
 OPUS_EXPORT int opus_multistream_encoder_init(
       OpusMSEncoder *st,          /**< Encoder state */
-      int Fs,                     /**< Sampling rate of input signal (Hz) */
+      opus_int32 Fs,                     /**< Sampling rate of input signal (Hz) */
       int channels,               /**< Number of channels (1/2) in input signal */
       int streams,
       int coupled_streams,
@@ -81,7 +81,7 @@
 OPUS_EXPORT int opus_multistream_encoder_ctl(OpusMSEncoder *st, int request, ...);
 
 OPUS_EXPORT OpusMSDecoder *opus_multistream_decoder_create(
-      int Fs,                     /**< Sampling rate of input signal (Hz) */
+      opus_int32 Fs,                     /**< Sampling rate of input signal (Hz) */
       int channels,               /**< Number of channels (1/2) in input signal */
       int streams,
       int coupled_streams,
@@ -91,7 +91,7 @@
 
 OPUS_EXPORT int opus_multistream_decoder_init(
       OpusMSDecoder *st,          /**< Encoder state */
-      int Fs,                     /**< Sampling rate of input signal (Hz) */
+      opus_int32 Fs,                     /**< Sampling rate of input signal (Hz) */
       int channels,               /**< Number of channels (1/2) in input signal */
       int streams,
       int coupled_streams,