Thank you for your reply.
What you are stating is correct, but this is not the issue we are experiencing. Let me try to elaborate a bit more about the issue we are experiencing.
What you are showing us on your image is the first part of the signal, which is valid. If you look at the last part of the buffer, it would be lots of zeros.
0,0,0,0,
0,0,0,0,
0,0,0,0,
0,0,0,0,
0,0,0,0,
0,0,0,0,
0,0,0,0,
If you look at the attached "Screenshot 2020-10-20 at 16.56.42.png" in one of my replies, you will see that about half of the samples (50 samples) give three triangles (triangular signal) and from about sample 51st to sample 100th samples are flat with some small anomalies, while it should continue with the triangular signal.
Our signal comes from function generator, using triangular wave.
Buffer is 100 samples per channel (int32 values) -> 4 bytes per sample (400 uint8 values) per channel = 800 uint8 values in total for 2 channels. First 4 bytes is left channel then 4 bytes for right channel.
For example:
29,81,231,0, // Left Channel
86,34,173,0, // Right Channel
181,232,203,0, // Left Channel
164,219,204,0, // Right Channel
Please look at the second half of the buffer to verify that it has lots of zeros. Can you see those zeroes? If not, what is your input, is it function generator, wav file, static array?
Screenshot 2020-10-30 at 09.14.57.png