frameReal method

Float32List frameReal(
  1. int index
)

Returns the real bins for a single frame as a zero-copy sublist view.

Implementation

Float32List frameReal(int index) {
  if (index < 0 || index >= frames) {
    throw RangeError.index(index, real, 'index', null, frames);
  }
  final start = index * bins;
  return Float32List.sublistView(real, start, start + bins);
}