opus_ctlvalues(3)
π opus_ctlvalues β the CTL value cheat sheet (from the Opus manual, section 3) π
okay bestie, sit down, hydrate, and let me tell you about opus_ctlvalues β it's literally just the pile of pre-defined values you pass into the CTL interface. No functions, no drama, just a whole wardrobe of #defines you're gonna be reaching for. π
β¨ NAME β¨
opus_ctlvalues β Pre-defined values for the CTL interface. that's it, that's the whole job. π
πΈ SYNOPSIS πΈ
π§ Macros π§
#define OPUS_AUTOβ the auto/default setting. let the library be the main character. β¨#define OPUS_BITRATE_MAXβ maximum bitrate. go big or go home. π₯#define OPUS_APPLICATION_VOIPβ best for most VoIP/videoconference applications where listening quality and intelligibility matter most. π§#define OPUS_APPLICATION_AUDIOβ best for broadcast/high-fidelity application where the decoded audio should be as close as possible to the input. π#define OPUS_APPLICATION_RESTRICTED_LOWDELAYβ only use when lowest-achievable latency is what matters most. ποΈ#define OPUS_APPLICATION_RESTRICTED_SILK 2052β Experts only: forces SILK encoding; don't allocate CELT state at all. π#define OPUS_APPLICATION_RESTRICTED_CELT 2053β Experts only: forces CELT encoding; don't allocate SILK state at all. π#define OPUS_SIGNAL_VOICE 3001β signal being encoded is voice. π£οΈ#define OPUS_SIGNAL_MUSIC 3002β signal being encoded is music. πΆ#define OPUS_BANDWIDTH_NARROWBANDβ 4 kHz bandpass#define OPUS_BANDWIDTH_MEDIUMBANDβ 6 kHz bandpass#define OPUS_BANDWIDTH_WIDEBANDβ 8 kHz bandpass#define OPUS_BANDWIDTH_SUPERWIDEBANDβ 12 kHz bandpass#define OPUS_BANDWIDTH_FULLBANDβ 20 kHz bandpass#define OPUS_FRAMESIZE_ARG 5000β select frame size from the argument (default). π#define OPUS_FRAMESIZE_2_5_MS 5001β use 2.5 ms frames.#define OPUS_FRAMESIZE_5_MS 5002β use 5 ms frames.#define OPUS_FRAMESIZE_10_MS 5003β use 10 ms frames.#define OPUS_FRAMESIZE_20_MS 5004β use 20 ms frames.#define OPUS_FRAMESIZE_40_MS 5005β use 40 ms frames.#define OPUS_FRAMESIZE_60_MS 5006β use 60 ms frames.#define OPUS_FRAMESIZE_80_MS 5007β use 80 ms frames.#define OPUS_FRAMESIZE_100_MS 5008β use 100 ms frames.#define OPUS_FRAMESIZE_120_MS 5009β use 120 ms frames.
π¦ Detailed Description π¦
See also: Generic CTLs, Encoder related CTLs β yeah, go read those too, they're the sequel. π«Ά
π Macro Definition Documentation π
#define OPUS_APPLICATION_AUDIO
Best for broadcast/high-fidelity application where the decoded audio should be as close as possible to the input. no notes, immaculate. π
#define OPUS_APPLICATION_RESTRICTED_CELT 2053
Experts only: forces CELT encoding; don't allocate SILK state at all. Disables OPUS_SET_APPLICATION. β οΈ
#define OPUS_APPLICATION_RESTRICTED_LOWDELAY
Only use when lowest-achievable latency is what matters most. Voice-optimized modes cannot be used. π
#define OPUS_APPLICATION_RESTRICTED_SILK 2052
Experts only: forces SILK encoding; don't allocate CELT state at all. Disables OPUS_SET_APPLICATION. β οΈ
#define OPUS_APPLICATION_VOIP
Best for most VoIP/videoconference applications where listening quality and intelligibility matter most. the call is coming from inside the house and it sounds crisp. π
#define OPUS_AUTO
Auto/default setting. let it cook. π
#define OPUS_BANDWIDTH_FULLBAND
20 kHz bandpass
#define OPUS_BANDWIDTH_MEDIUMBAND
6 kHz bandpass
#define OPUS_BANDWIDTH_NARROWBAND
4 kHz bandpass
#define OPUS_BANDWIDTH_SUPERWIDEBAND
12 kHz bandpass
#define OPUS_BANDWIDTH_WIDEBAND
8 kHz bandpass
#define OPUS_BITRATE_MAX
Maximum bitrate. π₯
#define OPUS_FRAMESIZE_100_MS 5008
Use 100 ms frames.
#define OPUS_FRAMESIZE_10_MS 5003
Use 10 ms frames.
#define OPUS_FRAMESIZE_120_MS 5009
Use 120 ms frames.
#define OPUS_FRAMESIZE_20_MS 5004
Use 20 ms frames.
#define OPUS_FRAMESIZE_2_5_MS 5001
Use 2.5 ms frames.
#define OPUS_FRAMESIZE_40_MS 5005
Use 40 ms frames.
#define OPUS_FRAMESIZE_5_MS 5002
Use 5 ms frames.
#define OPUS_FRAMESIZE_60_MS 5006
Use 60 ms frames.
#define OPUS_FRAMESIZE_80_MS 5007
Use 80 ms frames.
#define OPUS_FRAMESIZE_ARG 5000
Select frame size from the argument (default).
#define OPUS_SIGNAL_MUSIC 3002
Signal being encoded is music. πΆ
#define OPUS_SIGNAL_VOICE 3001
Signal being encoded is voice. π£οΈ
π Author π
Generated automatically by Doxygen for Opus from the source code. (not me writing it by hand, the robots did it, and honestly? respect. π€π)
aaaand that's the whole page bestie, you ate it, you read every single macro, i'm so proud π₯Ή β this was Version 1.6.1, dated Thu Jan 29 2026 14:35:32, and it's opus_ctlvalues(3), periodt. π
β¨
π¦ where this page comes from
- ubuntu resolute: libopus-doc 1.6.1-1 Β· BSD-3-Clause
- ubuntu stonking: libopus-doc 1.6.1-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms