Use IOBufferDuration instead of deprecated method

We can obtain actual buffer duration on iOS 6.0 onwards without using a
deprecated API.
Merge pull request #65 from iamandybarnard/master

Use IOBufferDuration instead of deprecated method