(caf7e6a2e) Replaced Concentus NuGet package with csproj (ensures correct System.Runtime references)
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
/* Copyright (c) 2007-2008 CSIRO
|
||||
Copyright (c) 2007-2011 Xiph.Org Foundation
|
||||
Originally written by Jean-Marc Valin, Gregory Maxwell, Koen Vos,
|
||||
Timothy B. Terriberry, and the Opus open-source contributors
|
||||
Ported to C# by Logan Stromberg
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
- Neither the name of Internet Society, IETF or IETF Trust, nor the
|
||||
names of specific contributors, may be used to endorse or promote
|
||||
products derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
|
||||
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Concentus.Enums
|
||||
{
|
||||
public enum OpusApplication
|
||||
{
|
||||
OPUS_APPLICATION_UNIMPLEMENTED = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Best for most VoIP/videoconference applications where listening quality and intelligibility matter most
|
||||
/// </summary>
|
||||
OPUS_APPLICATION_VOIP = 2048,
|
||||
|
||||
/// <summary>
|
||||
/// Best for broadcast/high-fidelity application where the decoded audio should be as close as possible to the input
|
||||
/// </summary>
|
||||
OPUS_APPLICATION_AUDIO = 2049,
|
||||
|
||||
/// <summary>
|
||||
/// Only use when lowest-achievable latency is what matters most. Voice-optimized modes cannot be used.
|
||||
/// </summary>
|
||||
OPUS_APPLICATION_RESTRICTED_LOWDELAY = 2051
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
/* Copyright (c) 2007-2008 CSIRO
|
||||
Copyright (c) 2007-2011 Xiph.Org Foundation
|
||||
Originally written by Jean-Marc Valin, Gregory Maxwell, Koen Vos,
|
||||
Timothy B. Terriberry, and the Opus open-source contributors
|
||||
Ported to C# by Logan Stromberg
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
- Neither the name of Internet Society, IETF or IETF Trust, nor the
|
||||
names of specific contributors, may be used to endorse or promote
|
||||
products derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
|
||||
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Concentus.Enums
|
||||
{
|
||||
public enum OpusBandwidth
|
||||
{
|
||||
OPUS_BANDWIDTH_AUTO = -1000,
|
||||
OPUS_BANDWIDTH_NARROWBAND = 1101,
|
||||
OPUS_BANDWIDTH_MEDIUMBAND = 1102,
|
||||
OPUS_BANDWIDTH_WIDEBAND = 1103,
|
||||
OPUS_BANDWIDTH_SUPERWIDEBAND = 1104,
|
||||
OPUS_BANDWIDTH_FULLBAND = 1105
|
||||
}
|
||||
|
||||
// FIXME: We should remove all cases where bandwidth is cast to int, it's.....improper
|
||||
internal static class OpusBandwidthHelpers
|
||||
{
|
||||
internal static int GetOrdinal(OpusBandwidth bw)
|
||||
{
|
||||
return (int)bw - (int)OpusBandwidth.OPUS_BANDWIDTH_NARROWBAND;
|
||||
}
|
||||
|
||||
internal static OpusBandwidth MIN(OpusBandwidth a, OpusBandwidth b)
|
||||
{
|
||||
if ((int)a < (int)b)
|
||||
return a;
|
||||
return b;
|
||||
}
|
||||
|
||||
internal static OpusBandwidth MAX(OpusBandwidth a, OpusBandwidth b)
|
||||
{
|
||||
if ((int)a > (int)b)
|
||||
return a;
|
||||
return b;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
/* Copyright (c) 2007-2008 CSIRO
|
||||
Copyright (c) 2007-2011 Xiph.Org Foundation
|
||||
Originally written by Jean-Marc Valin, Gregory Maxwell, Koen Vos,
|
||||
Timothy B. Terriberry, and the Opus open-source contributors
|
||||
Ported to C# by Logan Stromberg
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
- Neither the name of Internet Society, IETF or IETF Trust, nor the
|
||||
names of specific contributors, may be used to endorse or promote
|
||||
products derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
|
||||
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Concentus.Enums
|
||||
{
|
||||
public static class OpusControl
|
||||
{
|
||||
/** These are the actual Encoder CTL ID numbers.
|
||||
* They should not be used directly by applications.
|
||||
* In general, SETs should be even and GETs should be odd.*/
|
||||
public const int OPUS_SET_APPLICATION_REQUEST = 4000;
|
||||
public const int OPUS_GET_APPLICATION_REQUEST = 4001;
|
||||
public const int OPUS_SET_BITRATE_REQUEST = 4002;
|
||||
public const int OPUS_GET_BITRATE_REQUEST = 4003;
|
||||
public const int OPUS_SET_MAX_BANDWIDTH_REQUEST = 4004;
|
||||
public const int OPUS_GET_MAX_BANDWIDTH_REQUEST = 4005;
|
||||
public const int OPUS_SET_VBR_REQUEST = 4006;
|
||||
public const int OPUS_GET_VBR_REQUEST = 4007;
|
||||
public const int OPUS_SET_BANDWIDTH_REQUEST = 4008;
|
||||
public const int OPUS_GET_BANDWIDTH_REQUEST = 4009;
|
||||
public const int OPUS_SET_COMPLEXITY_REQUEST = 4010;
|
||||
public const int OPUS_GET_COMPLEXITY_REQUEST = 4011;
|
||||
public const int OPUS_SET_INBAND_FEC_REQUEST = 4012;
|
||||
public const int OPUS_GET_INBAND_FEC_REQUEST = 4013;
|
||||
public const int OPUS_SET_PACKET_LOSS_PERC_REQUEST = 4014;
|
||||
public const int OPUS_GET_PACKET_LOSS_PERC_REQUEST = 4015;
|
||||
public const int OPUS_SET_DTX_REQUEST = 4016;
|
||||
public const int OPUS_GET_DTX_REQUEST = 4017;
|
||||
public const int OPUS_SET_VBR_CONSTRAINT_REQUEST = 4020;
|
||||
public const int OPUS_GET_VBR_CONSTRAINT_REQUEST = 4021;
|
||||
public const int OPUS_SET_FORCE_CHANNELS_REQUEST = 4022;
|
||||
public const int OPUS_GET_FORCE_CHANNELS_REQUEST = 4023;
|
||||
public const int OPUS_SET_SIGNAL_REQUEST = 4024;
|
||||
public const int OPUS_GET_SIGNAL_REQUEST = 4025;
|
||||
public const int OPUS_GET_LOOKAHEAD_REQUEST = 4027;
|
||||
/* public const int OPUS_RESET_STATE 4028 */
|
||||
public const int OPUS_GET_SAMPLE_RATE_REQUEST = 4029;
|
||||
public const int OPUS_GET_FINAL_RANGE_REQUEST = 4031;
|
||||
public const int OPUS_GET_PITCH_REQUEST = 4033;
|
||||
public const int OPUS_SET_GAIN_REQUEST = 4034;
|
||||
public const int OPUS_GET_GAIN_REQUEST = 4045;
|
||||
public const int OPUS_SET_LSB_DEPTH_REQUEST = 4036;
|
||||
public const int OPUS_GET_LSB_DEPTH_REQUEST = 4037;
|
||||
public const int OPUS_GET_LAST_PACKET_DURATION_REQUEST = 4039;
|
||||
public const int OPUS_SET_EXPERT_FRAME_DURATION_REQUEST = 4040;
|
||||
public const int OPUS_GET_EXPERT_FRAME_DURATION_REQUEST = 4041;
|
||||
public const int OPUS_SET_PREDICTION_DISABLED_REQUEST = 4042;
|
||||
public const int OPUS_GET_PREDICTION_DISABLED_REQUEST = 4043;
|
||||
|
||||
/// <summary>
|
||||
/// Resets the codec state to be equivalent to a freshly initialized state.
|
||||
/// This should be called when switching streams in order to prevent
|
||||
/// the back to back decoding from giving different results from
|
||||
/// one at a time decoding.
|
||||
/// </summary>
|
||||
public const int OPUS_RESET_STATE = 4028;
|
||||
|
||||
public const int OPUS_SET_VOICE_RATIO_REQUEST = 11018;
|
||||
public const int OPUS_GET_VOICE_RATIO_REQUEST = 11019;
|
||||
public const int OPUS_SET_FORCE_MODE_REQUEST = 11002;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
/* Copyright (c) 2007-2008 CSIRO
|
||||
Copyright (c) 2007-2011 Xiph.Org Foundation
|
||||
Originally written by Jean-Marc Valin, Gregory Maxwell, Koen Vos,
|
||||
Timothy B. Terriberry, and the Opus open-source contributors
|
||||
Ported to C# by Logan Stromberg
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
- Neither the name of Internet Society, IETF or IETF Trust, nor the
|
||||
names of specific contributors, may be used to endorse or promote
|
||||
products derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
|
||||
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Concentus.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// Note that since most API-level errors are detected and thrown as
|
||||
/// OpusExceptions, direct use of this class is not usually needed
|
||||
/// </summary>
|
||||
public static class OpusError
|
||||
{
|
||||
/** No error*/
|
||||
public const int OPUS_OK = 0;
|
||||
|
||||
/** One or more invalid/out of range arguments*/
|
||||
public const int OPUS_BAD_ARG = -1;
|
||||
|
||||
/** Not enough bytes allocated in the buffer*/
|
||||
public const int OPUS_BUFFER_TOO_SMALL = -2;
|
||||
|
||||
/** An public error was detected*/
|
||||
public const int OPUS_INTERNAL_ERROR = -3;
|
||||
|
||||
/** The compressed data passed is corrupted*/
|
||||
public const int OPUS_INVALID_PACKET = -4;
|
||||
|
||||
/** Invalid/unsupported request number*/
|
||||
public const int OPUS_UNIMPLEMENTED = -5;
|
||||
|
||||
/** An encoder or decoder structure is invalid or already freed*/
|
||||
public const int OPUS_INVALID_STATE = -6;
|
||||
|
||||
/** Memory allocation has failed*/
|
||||
public const int OPUS_ALLOC_FAIL = -7;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
/* Copyright (c) 2007-2008 CSIRO
|
||||
Copyright (c) 2007-2011 Xiph.Org Foundation
|
||||
Originally written by Jean-Marc Valin, Gregory Maxwell, Koen Vos,
|
||||
Timothy B. Terriberry, and the Opus open-source contributors
|
||||
Ported to C# by Logan Stromberg
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
- Neither the name of Internet Society, IETF or IETF Trust, nor the
|
||||
names of specific contributors, may be used to endorse or promote
|
||||
products derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
|
||||
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Concentus.Enums
|
||||
{
|
||||
public enum OpusFramesize
|
||||
{
|
||||
/// <summary>
|
||||
/// Select frame size from the argument (default)
|
||||
/// </summary>
|
||||
OPUS_FRAMESIZE_ARG = 5000,
|
||||
|
||||
/// <summary>
|
||||
/// Use 2.5 ms frames
|
||||
/// </summary>
|
||||
OPUS_FRAMESIZE_2_5_MS = 5001,
|
||||
|
||||
/// <summary>
|
||||
/// Use 5 ms frames
|
||||
/// </summary>
|
||||
OPUS_FRAMESIZE_5_MS = 5002,
|
||||
|
||||
/// <summary>
|
||||
/// Use 10 ms frames
|
||||
/// </summary>
|
||||
OPUS_FRAMESIZE_10_MS = 5003,
|
||||
|
||||
/// <summary>
|
||||
/// Use 20 ms frames
|
||||
/// </summary>
|
||||
OPUS_FRAMESIZE_20_MS = 5004,
|
||||
|
||||
/// <summary>
|
||||
/// Use 40 ms frames
|
||||
/// </summary>
|
||||
OPUS_FRAMESIZE_40_MS = 5005,
|
||||
|
||||
/// <summary>
|
||||
/// Use 60 ms frames
|
||||
/// </summary>
|
||||
OPUS_FRAMESIZE_60_MS = 5006,
|
||||
|
||||
/// <summary>
|
||||
/// Do not use - not fully implemented. Optimize the frame size dynamically.
|
||||
/// </summary>
|
||||
OPUS_FRAMESIZE_VARIABLE = 5010
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
/* Copyright (c) 2007-2008 CSIRO
|
||||
Copyright (c) 2007-2011 Xiph.Org Foundation
|
||||
Originally written by Jean-Marc Valin, Gregory Maxwell, Koen Vos,
|
||||
Timothy B. Terriberry, and the Opus open-source contributors
|
||||
Ported to C# by Logan Stromberg
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
- Neither the name of Internet Society, IETF or IETF Trust, nor the
|
||||
names of specific contributors, may be used to endorse or promote
|
||||
products derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
|
||||
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Concentus.Enums
|
||||
{
|
||||
public enum OpusMode
|
||||
{
|
||||
MODE_AUTO = -1000,
|
||||
MODE_SILK_ONLY = 1000,
|
||||
MODE_HYBRID = 1001,
|
||||
MODE_CELT_ONLY = 1002
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
/* Copyright (c) 2007-2008 CSIRO
|
||||
Copyright (c) 2007-2011 Xiph.Org Foundation
|
||||
Originally written by Jean-Marc Valin, Gregory Maxwell, Koen Vos,
|
||||
Timothy B. Terriberry, and the Opus open-source contributors
|
||||
Ported to C# by Logan Stromberg
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
- Neither the name of Internet Society, IETF or IETF Trust, nor the
|
||||
names of specific contributors, may be used to endorse or promote
|
||||
products derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
|
||||
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
namespace Concentus.Enums
|
||||
{
|
||||
public enum OpusSignal
|
||||
{
|
||||
OPUS_SIGNAL_AUTO = -1000,
|
||||
|
||||
/// <summary>
|
||||
/// Signal being encoded is voice
|
||||
/// </summary>
|
||||
OPUS_SIGNAL_VOICE = 3001,
|
||||
|
||||
/// <summary>
|
||||
/// Signal being encoded is music
|
||||
/// </summary>
|
||||
OPUS_SIGNAL_MUSIC = 3002
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user