private fun parseWaveformsFromJsonFile(waveformsFile: File): Map<Int?, FloatArray?>? { var waveformsMap: Map<Int?, FloatArray >? try { waveformsMap = parseJsonFile(waveformsFile) as Map<Int?, FloatArray?>? LOG.info("Loaded waveform images from {}", waveformsFile) } catch (exception: IOException) { waveformsMap = HashMap() LOG.error("Error loading waveform thumbnails: {}", exception.getMessage(), exception) } return waveformsMap }
Loads the waveforms from a saved file formatted in JSON