Move range view do separate package.
Use a float DCT make sure to read enough audio data.

DCT one operates on real values.