Skip to content

Commit

Permalink
Forgot to update url and windowSize
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Jun 26, 2022
1 parent 27b1643 commit be6ddf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/AudioKitUI/Visualizations/AudioFileWaveform.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class AudioFileWaveformViewModel: ObservableObject {
func update(url: URL, rmsSamplesPerWindow: Int) {
if url != self.url || rmsSamplesPerWindow != windowSize {
rmsValues = AudioHelpers.getRMSValues(url: url, windowSize: rmsSamplesPerWindow)
self.url = url
self.windowSize = rmsSamplesPerWindow
}
}
}
Expand Down

0 comments on commit be6ddf9

Please sign in to comment.