Oh and to be clear 'Samples[i].SampleLength' is the length of data in bytes.