Apply the window function to a sample buffer.
Apply the window to a portion of this sample buffer, given an offset from the beginning of the buffer and the number of samples to be windowed.