Skip to main content

Module utils

Module utils 

Source
Expand description

Utility functions for common buffer operations

Functionsยง

apply_gain
Apply gain to slice
calculate_peak
Calculate peak of slice
calculate_rms
Calculate RMS of slice
copy_safe
Copy data from one slice to another with bounds checking
mix_with_gain
Mix two slices with gain
zero_fill
Fill slice with zeroes