decodeFile method
Decodes the audio file at path into a peak pyramid.
Not available on web, which has no filesystem - use decodeBytes there. Prefer this on native: the decoder streams the file a bucket at a time, so an audiobook never has to be resident in memory.
Throws MonowaveDecodeException if the container cannot be read.
Implementation
@override
Future<WaveformPeaks> decodeFile(
String path, {
int baseSamplesPerPixel = 128,
}) async => _decode(path);