unsafe_libopus/src/
opus_defines.rs

1pub const OPUS_OK: i32 = 0;
2pub const OPUS_BAD_ARG: i32 = -1;
3pub const OPUS_BUFFER_TOO_SMALL: i32 = -2;
4pub const OPUS_INTERNAL_ERROR: i32 = -3;
5pub const OPUS_INVALID_PACKET: i32 = -4;
6pub const OPUS_UNIMPLEMENTED: i32 = -5;
7pub const OPUS_INVALID_STATE: i32 = -6;
8pub const OPUS_ALLOC_FAIL: i32 = -7;
9
10pub const OPUS_SET_APPLICATION_REQUEST: i32 = 4000;
11pub const OPUS_GET_APPLICATION_REQUEST: i32 = 4001;
12pub const OPUS_SET_BITRATE_REQUEST: i32 = 4002;
13pub const OPUS_GET_BITRATE_REQUEST: i32 = 4003;
14pub const OPUS_SET_MAX_BANDWIDTH_REQUEST: i32 = 4004;
15pub const OPUS_GET_MAX_BANDWIDTH_REQUEST: i32 = 4005;
16pub const OPUS_SET_VBR_REQUEST: i32 = 4006;
17pub const OPUS_GET_VBR_REQUEST: i32 = 4007;
18pub const OPUS_SET_BANDWIDTH_REQUEST: i32 = 4008;
19pub const OPUS_GET_BANDWIDTH_REQUEST: i32 = 4009;
20pub const OPUS_SET_COMPLEXITY_REQUEST: i32 = 4010;
21pub const OPUS_GET_COMPLEXITY_REQUEST: i32 = 4011;
22pub const OPUS_SET_INBAND_FEC_REQUEST: i32 = 4012;
23pub const OPUS_GET_INBAND_FEC_REQUEST: i32 = 4013;
24pub const OPUS_SET_PACKET_LOSS_PERC_REQUEST: i32 = 4014;
25pub const OPUS_GET_PACKET_LOSS_PERC_REQUEST: i32 = 4015;
26pub const OPUS_SET_DTX_REQUEST: i32 = 4016;
27pub const OPUS_GET_DTX_REQUEST: i32 = 4017;
28pub const OPUS_SET_VBR_CONSTRAINT_REQUEST: i32 = 4020;
29pub const OPUS_GET_VBR_CONSTRAINT_REQUEST: i32 = 4021;
30pub const OPUS_SET_FORCE_CHANNELS_REQUEST: i32 = 4022;
31pub const OPUS_GET_FORCE_CHANNELS_REQUEST: i32 = 4023;
32pub const OPUS_SET_SIGNAL_REQUEST: i32 = 4024;
33pub const OPUS_GET_SIGNAL_REQUEST: i32 = 4025;
34pub const OPUS_GET_LOOKAHEAD_REQUEST: i32 = 4027;
35pub const OPUS_RESET_STATE: i32 = 4028;
36pub const OPUS_GET_SAMPLE_RATE_REQUEST: i32 = 4029;
37pub const OPUS_GET_FINAL_RANGE_REQUEST: i32 = 4031;
38pub const OPUS_GET_PITCH_REQUEST: i32 = 4033;
39pub const OPUS_SET_GAIN_REQUEST: i32 = 4034;
40pub const OPUS_GET_GAIN_REQUEST: i32 = 4045; /* Should have been 4035 */
41pub const OPUS_SET_LSB_DEPTH_REQUEST: i32 = 4036;
42pub const OPUS_GET_LSB_DEPTH_REQUEST: i32 = 4037;
43pub const OPUS_GET_LAST_PACKET_DURATION_REQUEST: i32 = 4039;
44pub const OPUS_SET_EXPERT_FRAME_DURATION_REQUEST: i32 = 4040;
45pub const OPUS_GET_EXPERT_FRAME_DURATION_REQUEST: i32 = 4041;
46pub const OPUS_SET_PREDICTION_DISABLED_REQUEST: i32 = 4042;
47pub const OPUS_GET_PREDICTION_DISABLED_REQUEST: i32 = 4043;
48pub const OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST: i32 = 4046;
49pub const OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST: i32 = 4047;
50pub const OPUS_GET_IN_DTX_REQUEST: i32 = 4049;
51
52pub const OPUS_AUTO: i32 = -1000;
53pub const OPUS_BITRATE_MAX: i32 = -1;
54
55pub const OPUS_APPLICATION_VOIP: i32 = 2048;
56pub const OPUS_APPLICATION_AUDIO: i32 = 2049;
57pub const OPUS_APPLICATION_RESTRICTED_LOWDELAY: i32 = 2051;
58
59pub const OPUS_SIGNAL_VOICE: i32 = 3001;
60pub const OPUS_SIGNAL_MUSIC: i32 = 3002;
61pub const OPUS_BANDWIDTH_NARROWBAND: i32 = 1101;
62pub const OPUS_BANDWIDTH_MEDIUMBAND: i32 = 1102;
63pub const OPUS_BANDWIDTH_WIDEBAND: i32 = 1103;
64pub const OPUS_BANDWIDTH_SUPERWIDEBAND: i32 = 1104;
65pub const OPUS_BANDWIDTH_FULLBAND: i32 = 1105;
66
67pub const OPUS_FRAMESIZE_ARG: i32 = 5000;
68pub const OPUS_FRAMESIZE_2_5_MS: i32 = 5001;
69pub const OPUS_FRAMESIZE_5_MS: i32 = 5002;
70pub const OPUS_FRAMESIZE_10_MS: i32 = 5003;
71pub const OPUS_FRAMESIZE_20_MS: i32 = 5004;
72pub const OPUS_FRAMESIZE_40_MS: i32 = 5005;
73pub const OPUS_FRAMESIZE_60_MS: i32 = 5006;
74pub const OPUS_FRAMESIZE_80_MS: i32 = 5007;
75pub const OPUS_FRAMESIZE_100_MS: i32 = 5008;
76pub const OPUS_FRAMESIZE_120_MS: i32 = 5009;