 Finally, if looping is not enabled, or not supported, then the function will return the number of sample spaces that were not used in the buffer.The caller can test if this value is not zero to detect the end of the stream and drop or write silence into the unused spaces if necessary.ADX supports a simple encryption scheme which XORs values from a linear congruential pseudorandom number generator with the block scale values.