Using AudioGraph with a CreateFileInputNodeAsync and CreateFrameOutputNode.
This is to allow me to open an audio file and extract the PCM data.
This is for waveform display.
This is kind of working.
But I am getting random blocks of zero memory given to me in the QuantumStarted event handler.
I can process the same audio file twice and get slightly different binary data.
Where the data differs there appears to be a load of zeros given to me.
But examining the binary data between two successive runs I can see where the differences start to happen the actual data is then given to me afterwards.
So the data is there - it's not missing.
It's as if the graph has given me a bunch of extra zero bytes.
Anyone come across this?
Any why is it happening?
It seems random but appears timing related.
If I add deliberate delay into the handler - to slow things down - I get less or no blocks of extra zeroes at all.