Skip to content
0.2.0-dev Download ZIP
31 lines ·586 B Raw
1namespace EvilEngine.Music.Aac;
2
3internal enum AacElement
4{
5 Single,
6 Pair,
7 Coupling,
8 LowFrequency
9}
10
11internal readonly record struct SbrSetup(
12 int CoreRate,
13 int OutputRate,
14 bool Downsampled,
15 bool Parametric,
16 bool Implicit);
17
18internal interface ISbrStage
19{
20 void Payload(int element, AacElement kind, ref AacBits bits, bool crc);
21
22 void Process(int element, AacElement kind, ReadOnlySpan<float> left, ReadOnlySpan<float> right, Span<float> outLeft,
23 Span<float> outRight);
24
25 void Reset();
26
27 void Seek()
28 {
29 Reset();
30 }
31}