sample2frame function

int sample2frame(
  1. int x
)

Converts sample count to frame count.

Accounts for the model's internal striding and padding.

Implementation

int sample2frame(int x) => (x - 721) ~/ 270;