“m_wma_buffer.pDecodedPacketCumulativeBytes always = data from "dpds" chunk”
Note the data can only be used directly from the “dpds” chunk if one submits the entire file (i.e. all the packets) in one call. When streaming a file a few packets at a time, the application should subtract pDecodedPacketCumulativeBytes[PacketCount-1] of the previous buffer submitted from all the entries of the currently submitted buffer.
For example if you want to submit just the first two packets of a file,
pDecodedPacketCumulativeBytes would point to an array containing the values:
Entry[0]
Entry[1]
Where the entries correspond to the data from the "dpds" chunk, as before.
However, submitting the next to packets of the file, pDecodedPacketCumulativeBytes would point to an array containing:
(Entry[2] – Entry[1])
(Entry[3] – Entry[1])