0

I believe there is a function which returns the max value for a double, however, I do not need this. I'm converting the following function:

```
public void StaticCompress(short[] samples, float param)
{
for (int i = 0; i < samples.Length; i++)
{
int sign = (samples[i] < 0) ? -1 : 1;
float norm = ABS(samples[i] / 32768); // NOT short.MaxValue
norm = 1.0 - POW(1.0 - norm, param);
samples[i] = 32768 * norm * sign;
}
}
```

But instead of using `shorts`

I pass in a `double`

array. Anyone have any suggestions?