fromEncodingSource encoding of incoming audio data
fromMinLevelMin audio threshold expected, used to normalize level
fromMaxLevelMax audio threshold expected, used to normalize level
toEncodingDesired output encoding
samplesIncoming data samples
offsetOffset of the sample array
lengthLength of sample array to be used
enqueueBytesWhether we need to enqueue each byte
variableSampleRateUsed for scripts with custom sample rate