FDWaveformView
FDWaveformView copied to clipboard
Factor out data source
Progress:
- [x] Create DataSource protocol which could be applicable to audio files or any other data source, such as an array or other generator
- [x] Move all existing audio code into an implementation of this DataSource
- [ ] Use
[Float]as the type for the DataSource
This is nearly done. Please help with the last item if you'd like to get a couple commits in.
There is a currently a Swift Evolution that is related here
https://github.com/apple/swift-evolution/blob/main/proposals/0307-allow-interchangeable-use-of-double-cgfloat-types.md
and it might impact the choice of Float above
We can use Double now because the proposal above was implemented