I have been encountering this error for my project, which involves working with Digital Audio Signals.
So I have been getting the amplitude values and recently encou
The absolute value of -32768 is +32768... but that's outside the range of short
... hence the error. (You're lucky you're seeing this as an exception... other ways of encountering this oddity can give silent overflow, leading to some very odd results)
Options:
int
before calling Math.Abs