brillcodec: apply struct base memory access for audio encoding