readFourdgsAudioSources function
Future<List<FourdgsAudioSource> >
readFourdgsAudioSources(
- FourdgsReadable source,
- FourdgsIndexedScene scene
Fetches every source descriptor and encoded payload.
Implementation
Future<List<FourdgsAudioSource>> readFourdgsAudioSources(
FourdgsReadable source,
FourdgsIndexedScene scene,
) async {
final out = <FourdgsAudioSource>[];
for (final entry in scene.audioSourceRanges) {
out.add(await _readAudioSource(source, scene, entry));
}
return out;
}