Skip to content

SBA DirAC metadata buffer reconfiguration on bit rate switch missing

Basic info

  • Commit SHA: 04a2fe35 (current main)
  • Platform: all

Bug description

DirAC uses a Metadata buffer (for e.g. azumith, elevetion,...) that is realized as ringbuffer with the length dependent on whether decoder side paramater estimation is active or not, i.e. whether metadata is stored once per subframe or once per slot. On a bit rate switch this can changen, but the buffers are not reallocated according to the change in the parameter estimation flag. This needs to be done (including moving the still needed metadata from the old buffers to the newly allocated ones in the best case).

Ways to reproduce

E.g. by decoding the self test condition SBA FOA bitrate switching from 13.2 kbps to 192 kbps, 48kHz in, 48kHz out, BINAURAL out there e.g. in frame 650 a switch from 13.2kbps (parametric binaural renderer with subframe metadata resolution, metadata buffer size 6) to 96kbps (fastconv binaural renderer with slot metadata resolution and metadata buffer size 24), now cycling to a much too small metadata buffer.