I'm developing an app (for myself and testing) that I'm able to record sound from mic and save it on a List<Uint8List> (using sound_stream plugin) and I think I'm doing something wrong.
To play all in list I do this:
void _play() async {
await _player.start();
if (_micChunks.isNotEmpty) {
for (var chunk in _micChunks) {
await _player.writeChunk(chunk);
}
//_micChunks.clear();
_isPlaying = false;
}
}
And to share I'm trying to do this (share ONLY the last on list):
Hi there,
I'm developing an app (for myself and testing) that I'm able to record sound from mic and save it on a
List<Uint8List>
(using sound_stream plugin) and I think I'm doing something wrong.To play all in list I do this:
And to share I'm trying to do this (share ONLY the last on list):
Any advise please? Thank you!