Resolve "Extended metadata issues"
Related to #379 (closed)
This is a set of fixes resolving #379 (closed). The changes are bit exact on the self_test. The main part of the fixes are under the define FIX_379_EXT_METADATA
but a refactoring/renaming relating to the metadata angles are put under a separate define FIX_379_ANGLE
.
The fixes include resolving using extended metadata with rate switching, which currently does not work in main. A test case is planned to be added in a separate MR, covering both the extended metadata (#377 (closed)) and rate switching on top of this.
We have also found that there may be discontinuities when switching extended metadata on and off. We have a solution that applies the gain change using a smoother transition. However, since this change is not bit exact we will put this in a separate MR.