playBuffered method

Future<bool> playBuffered(
  1. int from,
  2. int to
)

Plays a copy of this stream created from the underlying buffer.

from and to indicate, in samples, where the stream should start playing and where it should stop. from must be less than to, from must be greater than 0, and to must be less than length.

Copied streams cannot be controlled in any way: they inherit effects settings from their parent stream, and play in their entirety.

Implementation

Future<bool> playBuffered(int from, int to) {
  return StreamMethods.playBuffered(id, from, to);
}