-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy patherrors.go
More file actions
40 lines (22 loc) · 1.2 KB
/
Copy patherrors.go
File metadata and controls
40 lines (22 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package opus
import "errors"
var (
errTooShortForTableOfContentsHeader = errors.New("packet is too short to contain table of contents header")
errUnsupportedFrameCode = errors.New("unsupported frame code")
errUnsupportedConfigurationMode = errors.New("unsupported configuration mode")
errInvalidSampleRate = errors.New("invalid sample rate")
errInvalidChannelCount = errors.New("invalid channel count")
errOutBufferTooSmall = errors.New("out isn't large enough")
errMalformedPacket = errors.New("malformed packet")
errBitrateOutOfRange = errors.New("bitrate out of range")
errInvalidComplexity = errors.New("invalid complexity")
errInvalidInputLength = errors.New("invalid input length")
errInvalidFrameSize = errors.New("invalid frame size")
errInvalidFrameByteBudget = errors.New("invalid frame byte budget")
errInvalidPLCFrameSize = errors.New("PLC output has an unsupported duration for the previous packet mode")
errInvalidApplication = errors.New("invalid application")
errInvalidLossRate = errors.New("loss rate must be 0-100")
errInvalidBandwidth = errors.New("invalid bandwidth")
)