EZAudio icon indicating copy to clipboard operation
EZAudio copied to clipboard

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

Open leonardbonfils opened this issue 8 years ago • 6 comments

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

leonardbonfils avatar Feb 20 '16 23:02 leonardbonfils

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

parsley75 avatar Mar 10 '16 12:03 parsley75

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.

freak4pc avatar Mar 22 '16 21:03 freak4pc

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.

leonardbonfils avatar Mar 22 '16 21:03 leonardbonfils

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

parsley75 avatar Mar 24 '16 12:03 parsley75

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?

freak4pc avatar Mar 24 '16 18:03 freak4pc

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))
        })

akac avatar May 04 '16 23:05 akac