syedhali / EZAudio

An iOS and macOS audio visualization framework built upon Core Audio useful for anyone doing real-time, low-latency audio processing and visualizations.
Other
4.94k stars 822 forks source link

Can you please translate the documentation into Swift (2.2) ? #282

Open leonardbonfils opened 8 years ago

leonardbonfils commented 8 years ago

A lot of people are learning Swift and not Objective-C now. It would be really nice if you guys could translate your entire documentation to Swift so us Swift-users can use this library more easily :)

Thanks

parsley75 commented 8 years ago

Seconded! Not that I don't appreciate the effort already put in, but the learning curve for both is steep

freak4pc commented 8 years ago

I don't see why a special documentation would be needed? Objective-C and Swift are pretty much interchangeable minus the bridging header. A good starting point would be the EZAudio-Swift project.

leonardbonfils commented 8 years ago

It would really help beginners who are trying to use this library. I consider myself somewhere between the beginner and intermediate levels of Swift-based iOS development, and while I am now able to understand a good portion of Objective-C code pretty well, I still don't understand everything, and truthfully, I'd rather focus on Swift than spend time learning Objective-C at the moment. So having a Swift documentation would be very nice to really help us Swift-only developers take advantage of the library.

parsley75 commented 8 years ago

@freak4pc i still think swift documentation would be good, but i will take your advice also. thanks.

freak4pc commented 8 years ago

If there's a notion for doing this I'd love to help. Wouldn't mind migrating the README.md file to Swift and have a link connecting the two.

@syedhali Would you accept a PR for this?

akac commented 8 years ago

Using EZAudio with Swift has been pretty simple for me.

        player.audioFile.getWaveformDataWithNumberOfPoints(1024, completion: { [unowned self] (buffer: UnsafeMutablePointer<UnsafeMutablePointer<Float>>, bufferSize: Int32) in
            self.audioPlot?.updateBuffer(buffer[0], withBufferSize: UInt32(bufferSize))
        })