-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdecoder_dred_helpers_default.go
More file actions
102 lines (74 loc) · 2.18 KB
/
Copy pathdecoder_dred_helpers_default.go
File metadata and controls
102 lines (74 loc) · 2.18 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
//go:build !gopus_dred && !gopus_osce
package gopus
import (
"github.com/thesyncim/gopus/internal/dnnblob"
)
type decoderDREDState struct{}
type decoderDREDRecoveryState struct {
dredRecovery int
}
func (d *Decoder) dredState() *decoderDREDState {
return nil
}
func (d *Decoder) dredRecoveryState() *decoderDREDRecoveryState {
return nil
}
func (d *Decoder) setDNNBlob(blob *dnnblob.Blob) error {
var models dnnblob.DecoderModelState
if blob != nil {
models = blob.DecoderModels()
}
d.dnnBlob = blob
d.pitchDNNLoaded = models.PitchDNN
d.plcModelLoaded = models.PLC
d.farganModelLoaded = models.FARGAN
d.setOSCEModelState(models)
return nil
}
func (d *Decoder) dredNeuralModelsLoaded() bool {
return d != nil && (d.pitchDNNLoaded || d.plcModelLoaded || d.farganModelLoaded)
}
func (d *Decoder) dredDecodeSidecarPossible() bool {
return false
}
func (d *Decoder) dredNeuralRuntimeLoaded() bool {
return false
}
func (d *Decoder) dredNeuralConcealmentReady() bool {
return false
}
func (d *Decoder) dredNeuralConcealmentAvailable() bool {
return false
}
func (d *Decoder) dredCachedPayloadActive() bool {
return false
}
func (d *Decoder) dredPayloadScannerActive() bool {
return false
}
func (d *Decoder) dredSidecarActive() bool {
return false
}
func (d *Decoder) dredGoodPacketMarkerActive() bool {
return false
}
func (d *Decoder) clearDREDPayloadState() {}
func (d *Decoder) invalidateDREDPayloadState() {}
func (d *Decoder) resetDRED48kNeuralBridge() {}
func (d *Decoder) resetDREDRuntimeState() {}
func (d *Decoder) maybeDropDREDState() {}
func (d *Decoder) decodeSILKNeuralPLCInto(_ []float32, _ int, _ plcDecodeState) (int, bool, error) {
return 0, false, nil
}
func (d *Decoder) decodeCELTNeuralPLCInto(_ []float32, _ int, _ plcDecodeState) (int, bool, error) {
return 0, false, nil
}
func (d *Decoder) beginHybridDREDLowbandHook() (cleanup func(), used func() bool) {
return func() {}, func() bool { return false }
}
func (d *Decoder) beginDREDRawMonoGoodFrameCapture(_ Mode) func() {
return func() {}
}
func (d *Decoder) maybeCacheDREDPayload(_ []byte) {}
func (d *Decoder) markDREDConcealed() {}
func (d *Decoder) markDREDUpdatedPCM(_ []float32, _ int, _ Mode) {}