message: Updated TensorAudio with some fixes
diff: @@ -113,7 +113,7 @@ class TensorAudio(object):
  from the `src` array.
  Raises:
  ValueError: Raised if the input array has an incorrect shape or if
  - offset + size exceeds the length of the `src` array.
  + `offset` + `size` exceeds the length of the `src` array.
  """
  if src.shape[1] != self._format.channels:
  raise ValueError(
  @@ -130,17 +130,17 @@ class TensorAudio(object):
  f"Index out of range. offset {offset} + size {size} should be <= "
  f"src's length: {len(src)}")
  - if len(src) > len(self._buffer):
  + if len(src) >= len(self._buffer):
  # Copy values from the source array to the internal buffer.
  new_offset = offset + size - len(self._buffer)
  new_size = len(self._buffer)
  - self._buffer = src[new_offset:new_offset + new_size]
  + self._buffer = src[new_offset:new_offset + new_size].copy()
  else:
  # Shift the internal buffer backward and add the incoming data to the end
  # of the buffer.
  shift = len(src)
  self._buffer = np.roll(self._buffer, -shift, axis=0)
  - self._buffer[-shift:, :] = src
  + self._buffer[-shift:, :] = src.copy()
  @property
  def format(self) -> _CppAudioFormat:
  