You did that already: https://github.com/xbmc/xbmc/blob/master/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp#L964
I think inputFormat.m_frames should be set to sinkFormat.m_frames