The 4800 comes from GetInputFormat() by the looks.  This `inputFormat` then gets placed into `m_internalFormat` which is used when creating the buffer pool.  Thus, OutputSamples will be called with 4800 (and thus AddPackets() can't be called with a multiple of m_frames).