Audio Util
class AudioUtil
Utility class for audio-related operations.
Functions
Link copied to clipboard
Converts an audio level to a double in the range [0, 1].
Link copied to clipboard
Converts two bytes to one short.
Link copied to clipboard
Converts an array of bytes to an array of shorts.
Link copied to clipboard
Link copied to clipboard
Converts RMS and sample count to an audio level.
Link copied to clipboard
Calculates the highest audio level in an array of shorts.
Link copied to clipboard
Checks if any sample audio level is greater than the specified minimum audio level.
Link copied to clipboard
Converts stereo samples to mono bytes.
Link copied to clipboard
Converts stereo samples to mono shorts.
Link copied to clipboard
Converts a double in the range [0, 1] to an audio level.
Link copied to clipboard
Converts floats in the range [-1, 1] to shorts.
Link copied to clipboard
Converts an array of floats to an array of shorts.
Link copied to clipboard
Calculates the gain coefficient for a given sample rate and time.
Link copied to clipboard
Gets the highest absolute sample value in an array of shorts.
Link copied to clipboard
Converts an array of shorts to an array of bytes.
Link copied to clipboard
Converts an array of shorts to an array of floats.
Link copied to clipboard
Converts shorts to floats in the range [-1, 1].
Link copied to clipboard
Converts a short to an array of two bytes.