13
0

Remove cruft

This commit is contained in:
Robin Gareus 2024-09-27 17:45:56 +02:00
parent 71a3161252
commit 301777e7fe
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -423,10 +423,6 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, samplecnt_t npeaks, samplepos
* least large enough for all the data in the audio file. if it * least large enough for all the data in the audio file. if it
* is too short, assume that a crash or other error truncated * is too short, assume that a crash or other error truncated
* it, and rebuild it from scratch. * it, and rebuild it from scratch.
*
* XXX this may not work for destructive recording, but we
* might decided to get rid of that anyway.
*
*/ */
const off_t expected_file_size = (_length.samples() / (double) samples_per_file_peak) * sizeof (PeakData); const off_t expected_file_size = (_length.samples() / (double) samples_per_file_peak) * sizeof (PeakData);
@ -591,10 +587,6 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, samplecnt_t npeaks, samplepos
samplecnt_t nvisual_peaks = 0; samplecnt_t nvisual_peaks = 0;
uint32_t i = 0; uint32_t i = 0;
/* handle the case where the initial visual peak is on a pixel boundary */
//current_stored_peak = min (current_stored_peak, stored_peak_before_next_visual_peak);
/* open ... close during out: handling */ /* open ... close during out: handling */
off_t map_off = (uint32_t) (current_stored_peak) * sizeof(PeakData); off_t map_off = (uint32_t) (current_stored_peak) * sizeof(PeakData);