FDWaveformView icon indicating copy to clipboard operation
FDWaveformView copied to clipboard

Factor out data source

Open fulldecent opened this issue 5 years ago • 2 comments

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.

fulldecent avatar Dec 27 '20 07:12 fulldecent

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

fulldecent avatar Mar 15 '21 19:03 fulldecent

We can use Double now because the proposal above was implemented

fulldecent avatar Mar 28 '24 03:03 fulldecent