removeAt method
(Untested) Dynamically remove an AudioSource at index
after this
ConcatenatingAudioSource has already been loaded.
Implementation
Future<void> removeAt(int index) async {
children.removeAt(index);
_shuffleOrder.removeRange(index, index + 1);
if (_player != null) {
_player!._broadcastSequence();
await (await _player!._platform).concatenatingRemoveRange(
ConcatenatingRemoveRangeRequest(
id: _id,
startIndex: index,
endIndex: index + 1,
shuffleOrder: List.of(_shuffleOrder.indices)));
}
}